diff options
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/player/video.c b/player/video.c index 77b6fb9a6d..62d0f486b7 100644 --- a/player/video.c +++ b/player/video.c @@ -327,7 +327,7 @@ err_out: no_video: uninit_video_chain(mpctx); if (track) - mp_deselect_track(mpctx, track); + error_on_track(mpctx, track); handle_force_window(mpctx, true); return 0; } @@ -836,9 +836,7 @@ void write_video(struct MPContext *mpctx, double endpts) error: MP_FATAL(mpctx, "Could not initialize video chain.\n"); uninit_video_chain(mpctx); - if (!mpctx->current_track[STREAM_AUDIO]) - mpctx->stop_play = PT_NEXT_ENTRY; - mpctx->error_playing = true; + error_on_track(mpctx, mpctx->current_track[STREAM_VIDEO][0]); handle_force_window(mpctx, true); mpctx->sleeptime = 0; } |