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:
parent
ce8fe6d815
commit
ebf6d0004b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user