How get rtcp packet using gstrtcpbuffer.h?

Sebastian Dröge sebastian at centricular.com
Tue May 10 06:46:12 UTC 2016


On Fr, 2016-05-06 at 10:39 -0700, Jek_point wrote:


> 	buf = gst_rtcp_buffer_new_copy_data(pipeline, 500);
> 	gst_rtcp_buffer_map(buf, GstMapFlags::GST_MAP_FLAG_LAST, rtcp)

That's not how this works and you should've gotten various compiler
warnings or even errors when trying to compile this.

You need to get the data of an actual RTCP packet and pass it in there,
and also use the correct mapping flags for mapping the buffer later
then to read its content.


You can find example usage of the GstRTCPBuffer API in the rtpmanager
element here:
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtpmanager


What are you trying to do exactly, why do you want to get an RTCP
packet and in which pipeline?

-- 
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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160510/b7beff80/attachment.sig>


More information about the gstreamer-devel mailing list