GNOME Bugzilla – Bug 321452
GstPad's "template" property is b0rked
Last modified: 2005-11-15 19:24:46 UTC
trying to get (read) any GstPad's "template" property will fail; gst_pad_get_property tries to return GST_PAD_TEMPLATE(object), which tries to cast the pad in question to a pad template; the correct way to obtain a pad's template seems to be GST_PAD_PAD_TEMPLATE(pad). Patch will follow.
Created attachment 54743 [details] [review] fixes gst_pad_get_property to correctly return the pad's template
Nice catch! Fixed in CVS: 2005-11-15 Daniel Fischer <dan at f3c dot com> * gst/gstpad.c: (gst_pad_get_property): GST_PAD_PAD_TEMPLATE(pad) gets the pad template, while GST_PAD_TEMPLATE(pad) does a cast. We want the former here. (#321452) Cheers -Tim