<div dir="ltr">Hi,<div><br></div><div>I am working on a plugin. In demux element of this plugin I am getting following error:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">(im_gst_play:3650): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GstPad'</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">(im_gst_play:3650): GStreamer-CRITICAL **: gst_element_remove_pad: assertion `GST_IS_PAD (pad)' failed</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">while I try to remove "GST_PAD_ALWAYS sink pad" of demux element using "gst_element_remove_pad" in it's finalize method.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I searched in other open source plugins but I could not find anyone using ""gst_element_remove_pad" api to remove "GST_PAD_ALWAYS sink pad". Neither I could find in gstreamer documentation any information on whether "GST_PAD_ALWAYS sink pad" should be removed explicity or not.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I confirmed from logs that my demuxer's sink pad is getting removed irrespective of whether I use "gst_element_remove_pad" api to remove it or not.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><div><font face="arial, sans-serif">1:11:06.139371152 ^[[336m 3593^[[00m 0x80510a8 ^[[32;01mINFO ^[[00m ^[[00;01;31;44m GST_REFCOUNTING gstelement.c:3022:gst_element_dispose:<demuxer>^[[00m dispose</font></div>
<div><font face="arial, sans-serif">1:11:06.139443222 ^[[336m 3593^[[00m 0x80510a8 ^[[36mDEBUG ^[[00m ^[[00;01;37;41m GST_ELEMENT_PADS gstelement.c:3028:gst_element_dispose:<demuxer>^[[00m removing 1 pads</font></div>
<div><font face="arial, sans-serif">1:11:06.139496167 ^[[336m 3593^[[00m 0x80510a8 ^[[32;01mINFO ^[[00m ^[[00;01;37;41m GST_ELEMENT_PADS gstelement.c:841:gst_element_remove_pad:<demuxer>^[[00m removing pad 'sink'</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Can somebody please help?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thanks,</div><div style="font-family:arial,sans-serif;font-size:13px">Yogesh</div></div>