mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
9d800cad43
commit
821994240e
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue