Bummer!<div>I was using a deprecated signal - new-decoded-pad.</div><div><br></div><div>On a separate note, the documentation here needs an updated signal list - </div><div><a href="http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-decodebin2.html">http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-decodebin2.html</a></div>
<div><br></div><div>Thanks</div><div>Rohit</div><div><br><div class="gmail_quote">On Mon, Jan 17, 2011 at 10:12 AM, Rohit Atri <span dir="ltr"><<a href="mailto:rohitratri@gmail.com">rohitratri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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><font color="#888888">Rohit<br>
</font></blockquote></div><br></div>