GNOME Bugzilla – Bug 158163
[api] Problem querying on ghostpads
Last modified: 2004-12-22 21:47:04 UTC
When I use a decodebin, querying on one of the pads created (ghostpads) segfaults with the following : GLib-GObject-WARNING **: invalid cast from `GstDecodeBin' to `GstAviDemux'
+ Trace 51919
If I do the same thing but use GST_PAD_REALIZE(pad) as the parameter to gst_pad_query() it works fine. Might want to check the gst_pad_query code to see if the ghostpads are "realized" before queried. Using gst-plugins-0.8.5
OK, I checked convert/send_event, they dispatch properly with the correct pad as argument. Query uses the same code, but does the query on the ghostpad (even though it requests the realpad). While doing that, it casts the provided pad to a GstPad (which the provided pad already is, but the realized pad isn't) explicitely, which makes me think that was a typo and not intentional. Fixed in CVS.