mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpbasepayload: add current timestamp and seqnum offset to stats
Expose the current timestamp and seqnum offset in the stats See https://bugzilla.gnome.org/show_bug.cgi?id=646577
This commit is contained in:
parent
40c2d3c088
commit
f0348d7005
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue