[gst-devel] sending extra data along with buffers

Stefan Kost ensonic at hora-obscura.de
Mon Jan 14 10:05:46 CET 2008


I am looking for a way to send some private data along with a buffer.  
During data capture I get some metadata about capture settings and I  
would like to store/analyze them later along with the data stream. I  
tried to add a payload item to caps and put a GstBuffer there. But  
this seems to be painful and I am afraid that it will cause  
renegotiation as the content changes for each buffer. Has anyone been  
doing something similar?

alternative (better approach) seems to be using a buffer subclass, right?

Attached is my current test. Its a bit hackish and fails. One thing I  
was wondering is that fakesrc send buffer with caps=NULL. A bug?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: capspayload.c
Type: text/x-csrc
Size: 3576 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080114/425f32fb/attachment.c>

More information about the gstreamer-devel mailing list