gst-libs/gst/rtp/gstbasertppayload.c: Use runnning time as the base time instead of the timestamp.

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.
This commit is contained in:
Wim Taymans 2007-12-03 13:47:00 +00:00
parent ab433ee7c9
commit 75aa042450
2 changed files with 8 additions and 2 deletions

View file

@ -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):

View 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;