validate: scenario: always unref srcpad

Reviewed-by: Thibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D959
This commit is contained in:
Guillaume Desmottes 2016-05-24 14:05:10 +00:00 committed by Thibault Saunier
parent 862b077569
commit 63d4987341

View file

@ -741,12 +741,12 @@ find_input_selector (GValue * velement, const gchar * type)
|| g_str_has_prefix (mime, "subtitle/") || g_str_has_prefix (mime, "subtitle/")
|| g_str_has_prefix (mime, "video/x-dvd-subpicture"); || g_str_has_prefix (mime, "video/x-dvd-subpicture");
gst_object_unref (srcpad);
if (found) if (found)
result = 0; result = 0;
} }
gst_caps_unref (caps); gst_caps_unref (caps);
gst_object_unref (srcpad);
} }
} }
return result; return result;