From 63d49873413b3760c65b652e1b6471981c67e5ca Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 24 May 2016 14:05:10 +0000 Subject: [PATCH] validate: scenario: always unref srcpad Reviewed-by: Thibault Saunier Differential Revision: https://phabricator.freedesktop.org/D959 --- validate/gst/validate/gst-validate-scenario.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 53c4531..687f8c9 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -741,12 +741,12 @@ find_input_selector (GValue * velement, const gchar * type) || g_str_has_prefix (mime, "subtitle/") || g_str_has_prefix (mime, "video/x-dvd-subpicture"); - gst_object_unref (srcpad); if (found) result = 0; } gst_caps_unref (caps); + gst_object_unref (srcpad); } } return result; -- 2.7.4