diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2002-07-13 15:54:02 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2002-07-13 15:54:02 +0000 |
commit | dfebbc31c27935b3742d8f7654f7b42c4d18fa69 (patch) | |
tree | 1accd30eae87c8551473f23fe594d6aa452a65aa /src/xine-engine/demux.c | |
parent | 1303e7cac34be0b1f618dd7c5e7bcb5e31c37cde (diff) | |
download | xine-lib-dfebbc31c27935b3742d8f7654f7b42c4d18fa69.tar.gz xine-lib-dfebbc31c27935b3742d8f7654f7b42c4d18fa69.tar.bz2 |
Move the flush of the audio_out plugin to audio_decoder loop.
It improves seeking.
CVS patchset: 2257
CVS date: 2002/07/13 15:54:02
Diffstat (limited to 'src/xine-engine/demux.c')
-rw-r--r-- | src/xine-engine/demux.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c index 631fce7f2..d8b4ed225 100644 --- a/src/xine-engine/demux.c +++ b/src/xine-engine/demux.c @@ -27,7 +27,6 @@ #include "demuxers/demux.h" #include "buffer.h" - /* internal use only - called from demuxers on seek/stop * warning: after clearing decoders fifos an absolute discontinuity * indication must be sent. relative discontinuities are likely @@ -38,6 +37,7 @@ void xine_demux_flush_engine (xine_t *this) { buf_element_t *buf; this->video_fifo->clear(this->video_fifo); + if( this->audio_fifo ) this->audio_fifo->clear(this->audio_fifo); @@ -52,10 +52,7 @@ void xine_demux_flush_engine (xine_t *this) { } this->metronom->adjust_clock(this->metronom, - this->metronom->get_current_time(this->metronom) + 30 * 90000 ); - - if (this->audio_out) - this->audio_out->control(this->audio_out, AO_CTRL_FLUSH_BUFFERS); + this->metronom->get_current_time(this->metronom) + 30 * 90000 ); } |