GST_PAD_PARENT caused seg fault on channel change

Olivier Crête olivier.crete at
Sat Dec 8 22:07:16 PST 2012

Where by stream lock, Nicolas means object lock. In case of doubt, use the function, not the macro. 


Nicolas Dufresne <nicolas.dufresne at> wrote:

>Le vendredi 07 décembre 2012 à 04:05 -0800, deepthips a écrit :
>> From some links I saw to use gst_pad_get_parent instead of
>> This solved the seg fault. But I am quite not sure how.  All comments
>> will
>> be very helpful. 
>The main difference is that gst_pad_get_parent() will return a
>on the object (you need to unref it when done). This prevent another
>thread from freeing the object while you are doing your operations.
>GST_PAD_PARENT() is normally used when the stream lock is taken, i.e.
>when the chain function is called.
>gstreamer-devel mailing list
>gstreamer-devel at

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

More information about the gstreamer-devel mailing list