diff options
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index c3214d5cc2..b5ae9c0212 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1701,6 +1701,12 @@ terminate_playback: mp_notify(mpctx, MPV_EVENT_TRACKS_CHANGED, NULL); + if (encode_lavc_didfail(mpctx->encode_lavc_ctx)) + mpctx->stop_play = PT_ERROR; + + if (mpctx->stop_play == PT_ERROR && !mpctx->error_playing) + mpctx->error_playing = MPV_ERROR_GENERIC; + bool nothing_played = !mpctx->shown_aframes && !mpctx->shown_vframes && mpctx->error_playing <= 0; switch (mpctx->stop_play) { |