summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-01 22:28:47 +0100
committerwm4 <wm4@nowhere>2016-02-01 22:28:47 +0100
commita0804329927904fdeb70d9712ff23baaab161bb4 (patch)
tree591fb123c622d76c2836cd6b5e3b46ea6ad4c483 /player/misc.c
parent5c8378b71aaa4fbfda69ed9f50fe10f40cd124f2 (diff)
downloadmpv-a0804329927904fdeb70d9712ff23baaab161bb4.tar.bz2
mpv-a0804329927904fdeb70d9712ff23baaab161bb4.tar.xz
player: refactor: reduce some dependencies on current_track
Don't mind me.
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/misc.c b/player/misc.c
index c86a03608c..1343c60eaf 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -172,8 +172,7 @@ void error_on_track(struct MPContext *mpctx, struct track *track)
if (track->type == STREAM_VIDEO)
MP_INFO(mpctx, "Video: no video\n");
if (mpctx->opts->stop_playback_on_init_failure ||
- (!mpctx->current_track[0][STREAM_AUDIO] &&
- !mpctx->current_track[0][STREAM_VIDEO]))
+ !(mpctx->vo_chain || mpctx->ao_chain))
{
if (!mpctx->stop_play)
mpctx->stop_play = PT_ERROR;