mirror of https://github.com/mpv-player/mpv
player: handle DVB demuxer reloading correctly
This was probably done incorrectly in cases when the currently selected channel had no data. I'm not sure if this codepath is functional at all, though. Maybe not. Untested due to lack of DVB hardware.
This commit is contained in:
parent
65db3291b3
commit
0c71ae0528
|
@ -1135,6 +1135,8 @@ goto_reopen_demuxer: ;
|
|||
|
||||
MP_VERBOSE(mpctx, "EOF code: %d \n", mpctx->stop_play);
|
||||
|
||||
terminate_playback:
|
||||
|
||||
if (mpctx->stop_play == PT_RELOAD_DEMUXER) {
|
||||
mpctx->stop_play = KEEP_PLAYING;
|
||||
mpctx->playback_initialized = false;
|
||||
|
@ -1145,8 +1147,6 @@ goto_reopen_demuxer: ;
|
|||
goto goto_reopen_demuxer;
|
||||
}
|
||||
|
||||
terminate_playback:
|
||||
|
||||
mp_nav_destroy(mpctx);
|
||||
|
||||
if (mpctx->stop_play == KEEP_PLAYING)
|
||||
|
|
Loading…
Reference in New Issue