ges: Fix build for older GLib

The return type of g_hash_table_insert changed from void to boolean
This commit is contained in:
Thibault Saunier 2015-03-19 09:32:25 +01:00
parent dd47def4e3
commit 7d0015b973

View file

@ -1197,12 +1197,20 @@ gboolean
ges_timeline_element_add_child_property (GESTimelineElement * self, ges_timeline_element_add_child_property (GESTimelineElement * self,
GParamSpec * pspec, GObject * child) GParamSpec * pspec, GObject * child)
{ {
gchar *signame = g_strconcat ("notify::", pspec->name, NULL);
if (g_hash_table_contains (self->priv->children_props, pspec)) {
GST_INFO_OBJECT (self, "Child property already exists: %s", pspec->name);
return FALSE;
}
GST_DEBUG_OBJECT (self, "Adding child property: %" GST_PTR_FORMAT "::%s", GST_DEBUG_OBJECT (self, "Adding child property: %" GST_PTR_FORMAT "::%s",
child, pspec->name); child, pspec->name);
if (g_hash_table_insert (self->priv->children_props, g_hash_table_insert (self->priv->children_props,
g_param_spec_ref (pspec), gst_object_ref (child))) { g_param_spec_ref (pspec), gst_object_ref (child));
gchar *signame = g_strconcat ("notify::", pspec->name, NULL); signame = g_strconcat ("notify::", pspec->name, NULL);
g_signal_connect (child, signame, G_CALLBACK (child_prop_changed_cb), self); g_signal_connect (child, signame, G_CALLBACK (child_prop_changed_cb), self);
@ -1211,9 +1219,6 @@ ges_timeline_element_add_child_property (GESTimelineElement * self,
return TRUE; return TRUE;
} }
return FALSE;
}
/** /**
* ges_track_element_get_child_property_by_pspec: * ges_track_element_get_child_property_by_pspec:
* @self: a #GESTrackElement * @self: a #GESTrackElement