getting assertion `GST_IS_PAD (pad)' failed on calling gst_element_remove_pad

Yogesh Tyagi yogesh.bit2006 at gmail.com
Sun Nov 24 21:28:04 PST 2013


H,

Thanks for this useful info.So is it like GstElement  removes all types
src/sink pads in finalize function or just "ALWAYS" src/sink pads?

Thanks,
Yogesh


On Sat, Nov 23, 2013 at 1:13 AM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On Di, 2013-11-19 at 17:08 +0530, Yogesh Tyagi wrote:
> > Hi,
> >
> > I am getting following error when I am trying to play a media file with
> my
> > sample gstreamer player:
> >
> >
> > (im_gst_play:3723): GLib-GObject-WARNING **: invalid uninstantiatable
> type
> > `(null)' in cast to `GstPad'
> >
> > (im_gst_play:3723): GStreamer-CRITICAL **: gst_element_remove_pad:
> > assertion `GST_IS_PAD (pad)' failed
> >
> > [...]
> >
> >  Can somebody help me to find out why this assertion is getting
> generated?
>
> That assertion means that the pointer you pass there is either NULL or a
> random pointer. Maybe you destroyed the pad before already?
>
> In any case, it's not necessary to remove pads from elements in their
> finalize function. GstElement already does that for you.
>
> --
> Sebastian Dröge <sebastian at centricular.com>
> Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131125/3dccf293/attachment-0001.html>


More information about the gstreamer-devel mailing list