diff options
author | wm4 <wm4@nowhere> | 2014-10-23 18:31:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-23 18:31:43 +0200 |
commit | c9234d769df83b7280f68f9dc24445029f84041a (patch) | |
tree | 450904d51303eedfec45acdd448fcbd689a54aad /player/core.h | |
parent | 809fbc6fc1e862ab2dfcfcceeb65d7382d8b51e9 (diff) | |
download | mpv-c9234d769df83b7280f68f9dc24445029f84041a.tar.bz2 mpv-c9234d769df83b7280f68f9dc24445029f84041a.tar.xz |
player: fix exiting if both audio and video fail initializing
The player was supposed to exit playback if both video and audio failed
to initialize (or if one of the streams was not selected when the other
stream failed). This didn't work; for one this check was missing from
one of the failure paths. And more importantly, both checked the
current_track array incorrectly.
Fix these issues, and move the failure handling code into a common
function.
CC: @mpv-player/stable
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index f883ae2882..1013fabac1 100644 --- a/player/core.h +++ b/player/core.h @@ -419,6 +419,7 @@ void merge_playlist_files(struct playlist *pl); float mp_get_cache_percent(struct MPContext *mpctx); bool mp_get_cache_idle(struct MPContext *mpctx); void update_window_title(struct MPContext *mpctx, bool force); +void error_on_track(struct MPContext *mpctx, struct track *track); void stream_dump(struct MPContext *mpctx); int mpctx_run_non_blocking(struct MPContext *mpctx, void (*thread_fn)(void *arg), void *thread_arg); |