mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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]
This commit is contained in:
parent
b405b35f8c
commit
70c86bc998
2 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ gst_child_proxy_lookup (GstChildProxy * object, const gchar * name,
|
||||||
g_return_val_if_fail (GST_IS_CHILD_PROXY (object), FALSE);
|
g_return_val_if_fail (GST_IS_CHILD_PROXY (object), FALSE);
|
||||||
g_return_val_if_fail (name != NULL, FALSE);
|
g_return_val_if_fail (name != NULL, FALSE);
|
||||||
|
|
||||||
obj = g_object_ref (object);
|
obj = G_OBJECT (g_object_ref (object));
|
||||||
|
|
||||||
current = names = g_strsplit (name, "::", -1);
|
current = names = g_strsplit (name, "::", -1);
|
||||||
/* find the owner of the property */
|
/* find the owner of the property */
|
||||||
|
|
|
@ -406,7 +406,7 @@ static void gst_parse_element_set (gchar *value, GstElement *element, graph_t *g
|
||||||
} else {
|
} else {
|
||||||
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value);
|
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value);
|
||||||
if (pspec != NULL) {
|
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);
|
GST_CAT_LOG_OBJECT (GST_CAT_PIPELINE, target, "found %s property", value);
|
||||||
} else {
|
} else {
|
||||||
SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \
|
SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \
|
||||||
|
|
Loading…
Reference in a new issue