mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
rtpbasepayload: add pt and ssrc to stats
This commit is contained in:
parent
b7cf2fa571
commit
bf4079277d
1 changed files with 11 additions and 9 deletions
|
@ -1018,7 +1018,8 @@ gst_rtp_base_payload_prepare_push (GstRTPBasePayload * payload,
|
||||||
priv->running_time = rtime_hz;
|
priv->running_time = rtime_hz;
|
||||||
} else {
|
} else {
|
||||||
GST_LOG_OBJECT (payload,
|
GST_LOG_OBJECT (payload,
|
||||||
"setting running-time to %" GST_TIME_FORMAT, GST_TIME_ARGS (rtime_ns));
|
"setting running-time to %" GST_TIME_FORMAT,
|
||||||
|
GST_TIME_ARGS (rtime_ns));
|
||||||
priv->running_time = rtime_ns;
|
priv->running_time = rtime_ns;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1044,8 +1045,8 @@ gst_rtp_base_payload_prepare_push (GstRTPBasePayload * payload,
|
||||||
(is_list) ? -1 : gst_buffer_get_size (GST_BUFFER (obj)),
|
(is_list) ? -1 : gst_buffer_get_size (GST_BUFFER (obj)),
|
||||||
payload->seqnum, data.rtptime, GST_TIME_ARGS (data.pts));
|
payload->seqnum, data.rtptime, GST_TIME_ARGS (data.pts));
|
||||||
|
|
||||||
if (g_atomic_int_compare_and_exchange (&payload->priv->
|
if (g_atomic_int_compare_and_exchange (&payload->
|
||||||
notified_first_timestamp, 1, 0)) {
|
priv->notified_first_timestamp, 1, 0)) {
|
||||||
g_object_notify (G_OBJECT (payload), "timestamp");
|
g_object_notify (G_OBJECT (payload), "timestamp");
|
||||||
g_object_notify (G_OBJECT (payload), "seqnum");
|
g_object_notify (G_OBJECT (payload), "seqnum");
|
||||||
}
|
}
|
||||||
|
@ -1129,7 +1130,7 @@ gst_rtp_base_payload_push (GstRTPBasePayload * payload, GstBuffer * buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstStructure *
|
static GstStructure *
|
||||||
gst_rtp_base_payload_create_stats (GstRTPBasePayload *rtpbasepayload)
|
gst_rtp_base_payload_create_stats (GstRTPBasePayload * rtpbasepayload)
|
||||||
{
|
{
|
||||||
GstRTPBasePayloadPrivate *priv;
|
GstRTPBasePayloadPrivate *priv;
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
|
@ -1141,7 +1142,8 @@ gst_rtp_base_payload_create_stats (GstRTPBasePayload *rtpbasepayload)
|
||||||
"running-time", G_TYPE_UINT64, priv->running_time,
|
"running-time", G_TYPE_UINT64, priv->running_time,
|
||||||
"seqnum", G_TYPE_UINT, rtpbasepayload->seqnum,
|
"seqnum", G_TYPE_UINT, rtpbasepayload->seqnum,
|
||||||
"timestamp", G_TYPE_UINT, rtpbasepayload->timestamp,
|
"timestamp", G_TYPE_UINT, rtpbasepayload->timestamp,
|
||||||
NULL);
|
"ssrc", G_TYPE_UINT, rtpbasepayload->current_ssrc,
|
||||||
|
"pt", G_TYPE_UINT, rtpbasepayload->pt, NULL);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue