How to best obtain packet loss statistics from rtspsrc

Sebastian Dröge sebastian at centricular.com
Wed Oct 28 00:27:37 PDT 2015


On Mi, 2015-10-28 at 00:19 -0500, John Weber wrote:
> 
> One question - is there a way that I can get access to a shared (read
> only, or immutable) version of the statistics from the rtp source? 
> I'd like to store that and reference it when I need to read it,
> rather than needing to go through the process of getting a new copy
> of the statistics GstStructure every time.

As GstStructure is not refcounted, no. But the one you get from the
"stats" property is owned by you and not going to change. You can keep
it around as long as you want, but to get newer stats you need to get a
new one.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151028/c2220897/attachment-0001.sig>


More information about the gstreamer-devel mailing list