Passing a GstBuffer to another function

iron_guitarist1987 jtrinidadperez at gmail.com
Sun Dec 23 17:48:44 PST 2012


Hello all,

I have a GstBuffer that I want to pass to another function. When I print the
size on the chain function, I see the correct size, but when I do so
myfunct, I only get 8. How can I pass a GstBuffer to another function?
Thanks.

void myfunct(GstBuffer *buf)
{
   g_print("Buffer size = %d\n", GST_BUFFER_SIZE(buf));
}

static GstFlowReturn
gst_my_chain (GstPad * pad, GstBuffer * buf)
{
   g_print("Buffer size = %d\n", GST_BUFFER_SIZE(buf));
   myfunct(buf);

//other stuff
}



-----
All your bases are belong to us.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Passing-a-GstBuffer-to-another-function-tp4657592.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list