diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-03-20 16:11:01 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-03-20 16:11:01 +0200 |
commit | 70c86bc998b64bde428265d736ece79fa67b9dbd (patch) | |
tree | 9c8c302ec0507bac0f850a3d9afbaaa07efcd719 /gst/parse/grammar.y | |
parent | b405b35f8cd4b6c4eba2e5316b5fbd561d3a1211 (diff) | |
download | gstreamer-70c86bc998b64bde428265d736ece79fa67b9dbd.tar.gz |
gst: Fix compilation with latest GLib
g_object_ref() forwards the type of its argument nowadays.
./grammar.y:409:14: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
gstchildproxy.c:212:7: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
Diffstat (limited to 'gst/parse/grammar.y')
-rw-r--r-- | gst/parse/grammar.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y index bc4c3c1ed0..65492baf06 100644 --- a/gst/parse/grammar.y +++ b/gst/parse/grammar.y @@ -406,7 +406,7 @@ static void gst_parse_element_set (gchar *value, GstElement *element, graph_t *g } else { pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value); if (pspec != NULL) { - target = g_object_ref (element); + target = G_OBJECT (g_object_ref (element)); GST_CAT_LOG_OBJECT (GST_CAT_PIPELINE, target, "found %s property", value); } else { SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \ |