summaryrefslogtreecommitdiff
path: root/gst/parse/grammar.y
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-31 12:00:56 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-31 12:00:56 +0200
commit3db0ce476f5854b59a643a2c352f2ede1f1718e4 (patch)
tree201866ed0acfdc73de8b77bdd7eaf1bc87d0d319 /gst/parse/grammar.y
parente7b9b683613f64fa8a34f3a766ffb4b074fa7a78 (diff)
downloadgstreamer-3db0ce476f5854b59a643a2c352f2ede1f1718e4.tar.gz
grammar.y: fix childproxy code
It takes GObject and not GstObject now
Diffstat (limited to 'gst/parse/grammar.y')
-rw-r--r--gst/parse/grammar.y16
1 files changed, 8 insertions, 8 deletions
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
index b48072ecac..70d8c7b3ff 100644
--- a/gst/parse/grammar.y
+++ b/gst/parse/grammar.y
@@ -332,7 +332,7 @@ static void gst_parse_new_child(GstChildProxy *child_proxy, GObject *object,
DelayedSet *set = (DelayedSet *) data;
GParamSpec *pspec;
GValue v = { 0, };
- GstObject *target = NULL;
+ GObject *target = NULL;
GType value_type;
GST_CAT_LOG_OBJECT (GST_CAT_PIPELINE, child_proxy, "new child %s, checking property %s",
@@ -360,7 +360,7 @@ static void gst_parse_new_child(GstChildProxy *child_proxy, GObject *object,
g_signal_handler_disconnect (child_proxy, set->signal_id);
if (!got_value)
goto error;
- g_object_set_property (G_OBJECT (target), pspec->name, &v);
+ g_object_set_property (target, pspec->name, &v);
} else {
const gchar *obj_name = GST_OBJECT_NAME(object);
gint len = strlen (obj_name);
@@ -375,12 +375,12 @@ out:
if (G_IS_VALUE (&v))
g_value_unset (&v);
if (target)
- gst_object_unref (target);
+ g_object_unref (target);
return;
error:
- GST_CAT_ERROR (GST_CAT_PIPELINE, "could not set property \"%s\" in element \"%s\"",
- pspec->name, GST_ELEMENT_NAME (target));
+ GST_CAT_ERROR (GST_CAT_PIPELINE, "could not set property \"%s\" in "
+ GST_PTR_FORMAT, pspec->name, target);
goto out;
}
@@ -390,7 +390,7 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph)
GParamSpec *pspec;
gchar *pos = value;
GValue v = { 0, };
- GstObject *target = NULL;
+ GObject *target = NULL;
GType value_type;
/* do nothing if assignment is for missing element */
@@ -436,7 +436,7 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph)
}
if (!got_value)
goto error;
- g_object_set_property (G_OBJECT (target), pspec->name, &v);
+ g_object_set_property (target, pspec->name, &v);
} else {
/* do a delayed set */
if (GST_IS_CHILD_PROXY (element)) {
@@ -454,7 +454,7 @@ out:
if (G_IS_VALUE (&v))
g_value_unset (&v);
if (target)
- gst_object_unref (target);
+ g_object_unref (target);
return;
error: