gst-libs/gst/rtp/gstbasertpdepayload.c: add queue delay to new segment as well (as...
authorPhilippe Kalaf <philippe.kalaf@collabora.co.uk>
Sun, 18 Dec 2005 00:41:10 +0000 (00:41 +0000)
committerPhilippe Kalaf <philippe.kalaf@collabora.co.uk>
Sun, 18 Dec 2005 00:41:10 +0000 (00:41 +0000)
Original commit message from CVS:
2005-12-17  Philippe Khalaf  <burger@speedy.org>

* gst-libs/gst/rtp/gstbasertpdepayload.c:
(gst_base_rtp_depayload_set_gst_timestamp):
add queue delay to new segment as well (as opposed to just the first
buffer). (bug #322347)

ChangeLog
gst-libs/gst/rtp/gstbasertpdepayload.c

index a86438a..53b5d75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-17  Philippe Khalaf  <burger@speedy.org> 
+
+       * gst-libs/gst/rtp/gstbasertpdepayload.c:
+       (gst_base_rtp_depayload_set_gst_timestamp):
+               add queue delay to new segment as well (as opposed to just the first
+               buffer). (bug #322347)
+
 2005-12-16  Stefan Kost  <ensonic@users.sf.net>
 
        * ext/libvisual/visual.c: (make_valid_name):
index a7477e4..64ba48b 100644 (file)
@@ -295,7 +295,9 @@ gst_base_rtp_depayload_set_gst_timestamp (GstBaseRTPDepayload * filter,
   GST_DEBUG_OBJECT (filter, "calculating ts : timestamp : %u, clockrate : %u",
       timestamp, filter->clock_rate);
 
-  GST_BUFFER_TIMESTAMP (buf) = ts;
+  /* add delay to timestamp */
+  GST_BUFFER_TIMESTAMP (buf) = ts + (filter->queue_delay * GST_MSECOND);
+
   GST_DEBUG_OBJECT (filter, "calculated ts %"
       GST_TIME_FORMAT, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
 
@@ -309,9 +311,6 @@ gst_base_rtp_depayload_set_gst_timestamp (GstBaseRTPDepayload * filter,
     filter->need_newsegment = FALSE;
     GST_DEBUG_OBJECT (filter, "Pushed newsegment event on this first buffer");
   }
-  /* add delay to timestamp */
-  GST_BUFFER_TIMESTAMP (buf) =
-      GST_BUFFER_TIMESTAMP (buf) + (filter->queue_delay * GST_MSECOND);
 }
 
 static void