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:
wm4 2014-10-28 19:48:56 +01:00
parent 65db3291b3
commit 0c71ae0528
1 changed files with 2 additions and 2 deletions

View File

@ -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)