summaryrefslogtreecommitdiff
path: root/src/xine-engine
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-11-22 16:23:58 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-11-22 16:23:58 +0000
commit68b54f1e156c3189455e8fd156cf9b65e0f09ba8 (patch)
treeb08c0bc82e4f01dd35aa7578cee1aff43a8a1bfa /src/xine-engine
parentfddec809f8689124e559ac0db775cac766946d46 (diff)
downloadxine-lib-68b54f1e156c3189455e8fd156cf9b65e0f09ba8.tar.gz
xine-lib-68b54f1e156c3189455e8fd156cf9b65e0f09ba8.tar.bz2
do not play with the clock any more, we have dedicated flush functions for that now
(This should fix Daniels MP3 problems, since the end of one stream would have adjusted the global clock thus affecting all other streams.) CVS patchset: 3334 CVS date: 2002/11/22 16:23:58
Diffstat (limited to 'src/xine-engine')
-rw-r--r--src/xine-engine/demux.c3
-rw-r--r--src/xine-engine/xine.c10
2 files changed, 6 insertions, 7 deletions
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c
index 54edcbe97..027743ed2 100644
--- a/src/xine-engine/demux.c
+++ b/src/xine-engine/demux.c
@@ -65,9 +65,6 @@ void xine_demux_flush_engine (xine_stream_t *stream) {
if (stream->audio_out) {
stream->audio_out->flush(stream->audio_out);
}
-
- stream->xine->clock->adjust_clock(stream->xine->clock,
- stream->xine->clock->get_current_time(stream->xine->clock) + 30 * 90000 );
}
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index 80c0f9686..b71acb94e 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine.c,v 1.194 2002/11/20 11:57:49 mroi Exp $
+ * $Id: xine.c,v 1.195 2002/11/22 16:23:59 mroi Exp $
*
* top-level xine functions
*
@@ -198,10 +198,12 @@ void xine_stop (xine_stream_t *stream) {
/*
* stream will make output threads discard about everything
- * am i abusing of xine architeture? :)
*/
- stream->xine->clock->adjust_clock (stream->xine->clock,
- stream->xine->clock->get_current_time(stream->xine->clock) + 30 * 90000 );
+ if (stream->audio_out)
+ stream->audio_out->flush(stream->audio_out);
+
+ if (stream->video_out)
+ stream->video_out->flush(stream->video_out);
pthread_mutex_unlock (&stream->frontend_lock);
}