After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321452 - GstPad's "template" property is b0rked
GstPad's "template" property is b0rked
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal minor
: 0.9.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-14 17:34 UTC by daniel fischer
Modified: 2005-11-15 19:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes gst_pad_get_property to correctly return the pad's template (630 bytes, patch)
2005-11-14 17:35 UTC, daniel fischer
committed Details | Review

Description daniel fischer 2005-11-14 17:34:23 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.
Comment 1 daniel fischer 2005-11-14 17:35:31 UTC
Created attachment 54743 [details] [review]
fixes gst_pad_get_property to correctly return the pad's template
Comment 2 Tim-Philipp Müller 2005-11-15 19:24:46 UTC
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