From ebf6d0004b7d574e6013d648fb9d78dfac06c26b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Dec 2013 00:31:28 +0100 Subject: 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. --- mpvcore/player/loadfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mpvcore/player/loadfile.c b/mpvcore/player/loadfile.c index 72d17086f9..33d10ed610 100644 --- a/mpvcore/player/loadfile.c +++ b/mpvcore/player/loadfile.c @@ -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; -- cgit v1.2.3