Passing additional info along with GstBuffer to downstream element
Arun Raghavan
arun at arunraghavan.net
Fri Jul 1 07:43:37 UTC 2016
On Mon, 27 Jun 2016, at 03:13 PM, Vinod K wrote:
> Hi All,
>
> I have captured some data in the decoder and store in memory. I want to
> pass
> it to down stream element (e.g Encoder) as memory pointer.
>
> After doing little bit of research found that GstTagList and GstMeta can
> be
> used.
> - GstTagList can be used to send pointer as event to downstream
> element.
> - GstMeta of buffer can be used where it flows with the buffer.
>
> Which one better ?? Please give me plugins name where I can look into.
> Is there any better way to do this ??
This really comes down to what kind of metadata this is and how it is
consumed downstream.
If it's something stream-related, it might make sense to emit a tag. If
it is metadata that is specific to the buffer, a meta makes sense.
It might be easier to talk about what method is best if you are able to
share what you're trying to do more specifically.
-- Arun
More information about the gstreamer-devel
mailing list