Blame SOURCES/0001-avoid-compilation-errors-with-newer-glib.patch

4ec165
From b4ff2c8805221bcff6895c543cb019a817ad7104 Mon Sep 17 00:00:00 2001
4ec165
From: Wim Taymans <wtaymans@redhat.com>
4ec165
Date: Thu, 22 Feb 2018 09:52:03 +0100
4ec165
Subject: [PATCH] avoid compilation errors with newer glib
4ec165
4ec165
Newest glib does type propagation. Do an explicit cast to the
4ec165
right type to silence the compiler.
4ec165
---
4ec165
 gst/gstchildproxy.c | 2 +-
4ec165
 gst/parse/grammar.y | 2 +-
4ec165
 2 files changed, 2 insertions(+), 2 deletions(-)
4ec165
4ec165
diff --git a/gst/gstchildproxy.c b/gst/gstchildproxy.c
4ec165
index ca5e47ea3..1bf983afa 100644
4ec165
--- a/gst/gstchildproxy.c
4ec165
+++ b/gst/gstchildproxy.c
4ec165
@@ -209,7 +209,7 @@ gst_child_proxy_lookup (GstChildProxy * object, const gchar * name,
4ec165
   g_return_val_if_fail (GST_IS_CHILD_PROXY (object), FALSE);
4ec165
   g_return_val_if_fail (name != NULL, FALSE);
4ec165
 
4ec165
-  obj = g_object_ref (object);
4ec165
+  obj = G_OBJECT (g_object_ref (object));
4ec165
 
4ec165
   current = names = g_strsplit (name, "::", -1);
4ec165
   /* find the owner of the property */
4ec165
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
4ec165
index bc4c3c1ed..0b3d04821 100644
4ec165
--- a/gst/parse/grammar.y
4ec165
+++ b/gst/parse/grammar.y
4ec165
@@ -406,7 +406,7 @@ static void gst_parse_element_set (gchar *value, GstElement *element, graph_t *g
4ec165
   } else {
4ec165
     pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value);
4ec165
     if (pspec != NULL) {
4ec165
-      target = g_object_ref (element);
4ec165
+      target = G_OBJECT(g_object_ref (element));
4ec165
       GST_CAT_LOG_OBJECT (GST_CAT_PIPELINE, target, "found %s property", value);
4ec165
     } else {
4ec165
       SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \
4ec165
-- 
4ec165
2.14.3
4ec165