? 3q
Index: gstfaad.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/ext/faad/gstfaad.c,v
retrieving revision 1.27
diff -u -r1.27 gstfaad.c
--- gstfaad.c	21 Feb 2005 18:58:46 -0000	1.27
+++ gstfaad.c	3 Mar 2005 12:14:53 -0000
@@ -551,7 +551,7 @@
   GstFaad *faad = GST_FAAD (gst_pad_get_parent (pad));
   GstBuffer *buf, *outbuf;
   faacDecFrameInfo *info;
-  guint64 next_ts;
+  guint64 next_ts = GST_CLOCK_TIME_NONE;
   void *out;
   gboolean run_loop = TRUE;
 
@@ -577,7 +577,9 @@
 
   /* buffer + remaining data */
   buf = GST_BUFFER (data);
-  next_ts = GST_BUFFER_TIMESTAMP (buf);
+
+  if (GST_BUFFER_TIMESTAMP (buf) != 0)
+    next_ts = GST_BUFFER_TIMESTAMP (buf);
   if (faad->tempbuf) {
     buf = gst_buffer_join (faad->tempbuf, buf);
     faad->tempbuf = NULL;
