From 4f15163a94c863e3e0cf8a65f3ad6f88946f7670 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 29 Oct 2002 16:02:43 +0000 Subject: engine improvements - output fifo flushing - more sophisticated discontinuity handling - seek improvement by waiting for at least one frame CVS patchset: 3089 CVS date: 2002/10/29 16:02:43 --- src/xine-engine/demux.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xine-engine/demux.c') diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c index 7ccfaa8b4..ddbb9017f 100644 --- a/src/xine-engine/demux.c +++ b/src/xine-engine/demux.c @@ -56,6 +56,14 @@ void xine_demux_flush_engine (xine_stream_t *stream) { buf->type = BUF_CONTROL_RESET_DECODER; stream->audio_fifo->put (stream->audio_fifo, buf); } + + if (stream->video_out) { + stream->video_out->flush(stream->video_out); + } + + if (stream->audio_out) { + stream->audio_out->flush(stream->audio_out); + } stream->metronom->adjust_clock(stream->metronom, stream->metronom->get_current_time(stream->metronom) + 30 * 90000 ); -- cgit v1.2.3