gst/gstpad.c: GST_PAD_PAD_TEMPLATE(pad) gets the pad template, while

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* 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)
This commit is contained in:
Tim-Philipp Müller 2005-11-15 19:24:46 +00:00
parent 30bb9cee7e
commit 57f0a5b232
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2005-11-15 Daniel Fischer <dan at f3c dot com>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
* 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)
2005-11-15 Wim Taymans <wim@fluendo.com>
* gst/gstevent.c:

View file

@ -440,7 +440,7 @@ gst_pad_get_property (GObject * object, guint prop_id,
g_value_set_enum (value, GST_PAD_DIRECTION (object));
break;
case PAD_PROP_TEMPLATE:
g_value_set_object (value, GST_PAD_TEMPLATE (object));
g_value_set_object (value, GST_PAD_PAD_TEMPLATE (object));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);