gst-libs/gst/rtp/gstbasertppayload.c: Use runnning time as the base time instead...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 3 Dec 2007 13:47:00 +0000 (13:47 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 3 Dec 2007 13:47:00 +0000 (13:47 +0000)
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_push):
Use runnning time as the base time instead of the timestamp.
Spotted by Saur on IRC.

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

index 8192cc2..49676b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-03  Wim Taymans  <wim.taymans@gmail.com>
+
+       * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_push):
+       Use runnning time as the base time instead of the timestamp.
+       Spotted by Saur on IRC.
+
 2007-12-03  Edward Hervey  <bilboed@bilboed.com>
 
        * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
index 944515a..598b1d7 100644 (file)
@@ -659,9 +659,9 @@ gst_basertppayload_push (GstBaseRTPPayload * payload, GstBuffer * buffer)
     /* take first timestamp as base, we want to calculate the RTP timestamp
      * starting from the ts_base */
     if (priv->rt_base == -1) {
-      priv->rt_base = timestamp;
+      priv->rt_base = rtime;
       GST_LOG_OBJECT (payload, "first timestamp %" GST_TIME_FORMAT,
-          GST_TIME_ARGS (timestamp));
+          GST_TIME_ARGS (rtime));
     }
     rtime -= priv->rt_base;