1
mirror of https://github.com/mpv-player/mpv synced 2024-09-28 17:52:52 +02:00

player: readd code accidentally removed with commit 61efe87e

Oops.
This commit is contained in:
wm4 2014-07-20 20:41:20 +02:00
parent 5526603a43
commit e982b5b287

View File

@ -343,6 +343,11 @@ bool timeline_set_part(struct MPContext *mpctx, int i, bool force)
uninit_player(mpctx, INITIALIZED_VCODEC | (mpctx->opts->fixed_vo ? 0 : INITIALIZED_VO) | (mpctx->opts->gapless_audio ? 0 : INITIALIZED_AO) | INITIALIZED_ACODEC | INITIALIZED_SUB | INITIALIZED_SUB2);
mpctx->stop_play = orig_stop_play;
if (mpctx->demuxer) {
demux_stop_thread(mpctx->demuxer);
demux_flush(mpctx->demuxer);
}
mpctx->demuxer = n->source;
mpctx->stream = mpctx->demuxer->stream;