basertppayload: ptime should be in nanoseconds
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>
Tue, 19 Jan 2010 02:16:32 +0000 (21:16 -0500)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 21 Jan 2010 09:46:17 +0000 (10:46 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=607403

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

index ed5accc..65c283f 100644 (file)
@@ -571,7 +571,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
       payload->priv->caps_max_ptime = max_ptime * GST_MSECOND;
 
     if (gst_structure_get_int (s, "ptime", &ptime) && ptime > 0)
-      payload->abidata.ABI.ptime = ptime;
+      payload->abidata.ABI.ptime = ptime * GST_MSECOND;
 
     if (gst_structure_get_int (s, "payload", &pt)) {
       /* use peer pt */
index 1591c10..4802ae8 100644 (file)
@@ -113,7 +113,7 @@ struct _GstBaseRTPPayload
 
   union  {
     struct {
-      guint ptime; /* in ms */
+      guint64 ptime; /* in ns */
     } ABI;
     gpointer _gst_reserved[GST_PADDING - (sizeof(guint64)/sizeof(gpointer)) - 1];
   } abidata;