1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01: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 else
dir = DVB_CHANNEL_LOWER; 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->stop_play = PT_RELOAD_DEMUXER;
mpctx->stream->start_pos = stream_tell(mpctx->stream);
}
} }
#endif #endif
goto terminate_playback; goto terminate_playback;