ges: Stop using hash_table_steal_extended
authorThibault Saunier <tsaunier@igalia.com>
Thu, 19 Mar 2020 12:15:07 +0000 (09:15 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 19 Mar 2020 12:15:11 +0000 (09:15 -0300)
This appeard in GLib 2.58

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/99

ges/ges-timeline-element.c

index d7cac8dfc208153fe8facdaeeaffc7d47b794b55..a33c20143e6e6ca9c3c2aada901ab437460db187 100644 (file)
@@ -2293,12 +2293,13 @@ ges_timeline_element_remove_child_property (GESTimelineElement * self,
   g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (self), FALSE);
   g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), FALSE);
 
-  if (!g_hash_table_steal_extended (self->priv->children_props, pspec,
+  if (!g_hash_table_lookup_extended (self->priv->children_props, pspec,
           &key, &value)) {
     GST_WARNING_OBJECT (self, "No child property with pspec %p (%s) found",
         pspec, pspec->name);
     return FALSE;
   }
+  g_hash_table_steal (self->priv->children_props, pspec);
   found_pspec = G_PARAM_SPEC (key);
   handler = (ChildPropHandler *) value;