Example code for sending extra data along with GstBuffer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Example code for sending extra data along with GstBuffer

salahgafoor
This post was updated on .
Hi,

I have created a gstreamer plugin, I have to send some arbitrary data from my plugin to the succeeding element (which is also created by myself) in addition to the GstBuffer data.

I have referred following links, but I failed in implementing this functionality.
Link1

Link2

Please provide some example code or links which would suite me.
Thanks in advance!
Reply | Threaded
Open this post in threaded view
|

Re: Example code for sending extra data along with GstBuffer

Gst-Geek
If data has to be sent along with the buffer then Metadata is better option.

https://gstreamer.freedesktop.org/documentation/design/meta.html

You need to write small piece of code to insert and retrieve the metadata.

Note: Elements in pipeline should pass through the metadata