mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rtpsource: update receiver stats for sender
An internal sender in a session is also a receiver of its own packets so update the receiver stats. Other senders in the session will use this info to generate correct RB blocks in their SR reports.
This commit is contained in:
parent
268a75e705
commit
c8db05d610
2 changed files with 3 additions and 0 deletions
|
@ -1370,6 +1370,7 @@ obtain_internal_source (RTPSession * sess, guint32 ssrc, gboolean * created)
|
||||||
|
|
||||||
source->validated = TRUE;
|
source->validated = TRUE;
|
||||||
source->internal = TRUE;
|
source->internal = TRUE;
|
||||||
|
source->probation = FALSE;
|
||||||
rtp_source_set_sdes_struct (source, gst_structure_copy (sess->sdes));
|
rtp_source_set_sdes_struct (source, gst_structure_copy (sess->sdes));
|
||||||
rtp_source_set_callbacks (source, &callbacks, sess);
|
rtp_source_set_callbacks (source, &callbacks, sess);
|
||||||
|
|
||||||
|
|
|
@ -1174,6 +1174,8 @@ rtp_source_send_rtp (RTPSource * src, RTPPacketInfo * pinfo)
|
||||||
src->stats.packets_sent += pinfo->packets;
|
src->stats.packets_sent += pinfo->packets;
|
||||||
src->stats.octets_sent += pinfo->payload_len;
|
src->stats.octets_sent += pinfo->payload_len;
|
||||||
src->bytes_sent += pinfo->payload_len;
|
src->bytes_sent += pinfo->payload_len;
|
||||||
|
/* we are also a receiver of our packets */
|
||||||
|
update_receiver_stats (src, pinfo);
|
||||||
|
|
||||||
running_time = pinfo->running_time;
|
running_time = pinfo->running_time;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue