How to extract the assoc gstbuffer from gstelement

jlancaster jeff_lancaster at
Tue Dec 11 09:57:48 PST 2012

I have a function in which one of the arguments is GstElement *element as
shown below:

GstStateChangeReturn QVideoSurfaceGstSink::change_state( GstElement
*element, GstStateChange transition);

On a pause event I want to write out the data in the associated GstBuffer of
that element to disk for further processing in some future time.

Is there a way to 'get' the GstBuffer from the element in some way?

Jeff Lancaster
View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list