mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
playsink: only unset initialized GValue
This commit is contained in:
parent
92a85024de
commit
ebfd6acde1
1 changed files with 4 additions and 3 deletions
|
@ -991,10 +991,11 @@ gst_play_sink_find_property_sinks (GstPlaySink * playsink, GstElement * obj,
|
||||||
found = gst_iterator_find_custom (it,
|
found = gst_iterator_find_custom (it,
|
||||||
(GCompareFunc) find_property, &item, &helper);
|
(GCompareFunc) find_property, &item, &helper);
|
||||||
gst_iterator_free (it);
|
gst_iterator_free (it);
|
||||||
if (found)
|
if (found) {
|
||||||
result = g_value_get_object (&item);
|
result = g_value_get_object (&item);
|
||||||
/* we don't need the extra ref */
|
/* we don't need the extra ref */
|
||||||
g_value_unset (&item);
|
g_value_unset (&item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue