decodebin: Check if value is set before unsetting it

https://bugzilla.gnome.org/show_bug.cgi?id=693401
This commit is contained in:
Matej Knopp 2013-02-14 11:17:31 +01:00 committed by Sebastian Dröge
parent 5385a65b04
commit 872cc295a6

View file

@ -3131,6 +3131,8 @@ gst_decode_group_control_demuxer_pad (GstDecodeGroup * group, GstPad * pad)
beach:
g_value_unset (&item);
if (G_IS_VALUE (&item))
g_value_unset (&item);
if (it)
gst_iterator_free (it);
gst_object_unref (sinkpad);