summaryrefslogtreecommitdiff
path: root/src/xine-engine/demux.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-10-29 16:02:43 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-10-29 16:02:43 +0000
commit4f15163a94c863e3e0cf8a65f3ad6f88946f7670 (patch)
tree34d456a17444c13b8b8c520c274ab11c483b0c3e /src/xine-engine/demux.c
parent4d910814b52c53ac6af78f77e20ee5db7eab3211 (diff)
downloadxine-lib-4f15163a94c863e3e0cf8a65f3ad6f88946f7670.tar.gz
xine-lib-4f15163a94c863e3e0cf8a65f3ad6f88946f7670.tar.bz2
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
Diffstat (limited to 'src/xine-engine/demux.c')
-rw-r--r--src/xine-engine/demux.c8
1 files changed, 8 insertions, 0 deletions
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 );