rtpbasepayload: add current timestamp and seqnum offset to stats
authorWim Taymans <wtaymans@redhat.com>
Sat, 12 Apr 2014 04:27:36 +0000 (06:27 +0200)
committerWim Taymans <wtaymans@redhat.com>
Sat, 12 Apr 2014 04:27:36 +0000 (06:27 +0200)
Expose the current timestamp and seqnum offset in the stats

See https://bugzilla.gnome.org/show_bug.cgi?id=646577

gst-libs/gst/rtp/gstrtpbasepayload.c

index 8ea42407da1e4cf2873c598fdde833565ab8abb7..208944bd92ac9069e2b1ee3e465e6b13e9e126f7 100644 (file)
@@ -1138,12 +1138,14 @@ gst_rtp_base_payload_create_stats (GstRTPBasePayload * rtpbasepayload)
   priv = rtpbasepayload->priv;
 
   s = gst_structure_new ("application/x-rtp-payload-stats",
-      "clock-rate", G_TYPE_UINT, rtpbasepayload->clock_rate,
+      "clock-rate", G_TYPE_UINT, (guint) rtpbasepayload->clock_rate,
       "running-time", G_TYPE_UINT64, priv->running_time,
-      "seqnum", G_TYPE_UINT, rtpbasepayload->seqnum,
-      "timestamp", G_TYPE_UINT, rtpbasepayload->timestamp,
+      "seqnum", G_TYPE_UINT, (guint) rtpbasepayload->seqnum,
+      "timestamp", G_TYPE_UINT, (guint) rtpbasepayload->timestamp,
       "ssrc", G_TYPE_UINT, rtpbasepayload->current_ssrc,
-      "pt", G_TYPE_UINT, rtpbasepayload->pt, NULL);
+      "pt", G_TYPE_UINT, rtpbasepayload->pt,
+      "seqnum-offset", G_TYPE_UINT, (guint) rtpbasepayload->seqnum_base,
+      "timestamp-offset", G_TYPE_UINT, (guint) rtpbasepayload->ts_base, NULL);
 
   return s;
 }