1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

dvb: prevent seek when reopening the demuxer

Since dvb input is not seekable anyway, this would probably just flush
the stream buffer, but at least it'll avoid a bogus message about
seeking errors.
This commit is contained in:
wm4 2013-12-13 00:31:28 +01:00
parent ce8fe6d815
commit ebf6d0004b

View File

@ -1202,8 +1202,10 @@ goto_reopen_demuxer: ;
else
dir = DVB_CHANNEL_LOWER;
if (dvb_step_channel(mpctx->stream, dir))
if (dvb_step_channel(mpctx->stream, dir)) {
mpctx->stop_play = PT_RELOAD_DEMUXER;
mpctx->stream->start_pos = stream_tell(mpctx->stream);
}
}
#endif
goto terminate_playback;