rtpsource: expose field bytes_received in RTPSourceStats

Since commit c971d1a9a (rtpsource: refactor bitrate estimation,
2010-03-02) bytes_received filed in RTPSourceStats is set but then never
used again, expose it so that it can be used  by user code to verify how
many bytes have been received.
This commit is contained in:
Antonio Ospite 2019-04-04 13:16:36 +02:00
parent 9d800cad43
commit 821994240e

View file

@ -169,6 +169,7 @@ rtp_source_class_init (RTPSourceClass * klass)
*
* "octets-received" G_TYPE_UINT64 total number of bytes received
* "packets-received" G_TYPE_UINT64 total number of packets received
* "bytes-received" G_TYPE_UINT64 total number of bytes received including lower level headers overhead
*
* Following fields are updated when "is-sender" is TRUE.
*
@ -415,6 +416,7 @@ rtp_source_create_stats (RTPSource * src)
"packets-sent", G_TYPE_UINT64, src->stats.packets_sent,
"octets-received", G_TYPE_UINT64, src->stats.octets_received,
"packets-received", G_TYPE_UINT64, src->stats.packets_received,
"bytes-received", G_TYPE_UINT64, src->stats.bytes_received,
"bitrate", G_TYPE_UINT64, src->bitrate,
"packets-lost", G_TYPE_INT,
(gint) rtp_stats_get_packets_lost (&src->stats), "jitter", G_TYPE_UINT,