From 6dff93acf69c40271a769aa2fa35efbcc2aeb9b4 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 18 May 2023 09:27:29 -0400 Subject: [PATCH] testsrcbin: Remove spurious caps unref Caps are cleared at the end of the function Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2575 Part-of: --- subprojects/gst-plugins-bad/gst/debugutils/gsttestsrcbin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/debugutils/gsttestsrcbin.c b/subprojects/gst-plugins-bad/gst/debugutils/gsttestsrcbin.c index 834e2ee092..02a39002a2 100644 --- a/subprojects/gst-plugins-bad/gst/debugutils/gsttestsrcbin.c +++ b/subprojects/gst-plugins-bad/gst/debugutils/gsttestsrcbin.c @@ -343,7 +343,6 @@ gst_test_src_bin_setup_src (GstTestSrcBin * self, const gchar * srcfactory, capsfilter = gst_element_factory_make ("capsfilter", NULL); if (caps) { g_object_set (capsfilter, "caps", caps, NULL); - gst_caps_unref (caps); } src = gst_element_factory_make (srcfactory, NULL);