Hi,<br><br>I've a pipeline like this - gstpipeline(filesrc->decodeBin2->gstbin(ffmpegcolorspace->capsfilter->appsink)).<br><br>The gstBin shown above has a ghost pad (mirroring sink pad of the converter). When I try to link the src pad of decodeBin2 (in the new-decoded-pad callback) with the sink ghostpad of the gstbin - the call gst_element_get_static_pad on the bin leads to a segmentation fault. Any idea why?<br>
<br>Here's the code I'm using -<br><i> <br>Ghost pad creation -<br>ConvSinkPad = gst_element_get_static_pad(converter, "sink");<br>gst_element_add_pad(GST_ELEMENT(app_data->convBin), gst_ghost_pad_new("sink", ConvSinkPad));<br>
gst_object_unref(ConvSinkPad);<br> <br>Linking -<br>on_decodeBin_newpad(..., GstPad* pad)<br>{<br>....<br>...<br> convBinSinkPad = gst_element_get_static_pad(app_data->convBin, "sink");<br> gst_pad_link(pad, convBinSinkPad);<br>
gst_object_unref(convBinSinkPad);<br>}</i><br><br>PS - I tried debugging but I don't get any logs even with level 5.<br><br>Thanks<br>Rohit<br>