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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4685>
This commit is contained in:
Thibault Saunier 2023-05-18 09:27:29 -04:00 committed by Tim-Philipp Müller
parent 324f4792ae
commit f984d775e8

View file

@ -343,7 +343,6 @@ gst_test_src_bin_setup_src (GstTestSrcBin * self, const gchar * srcfactory,
capsfilter = gst_element_factory_make ("capsfilter", NULL); capsfilter = gst_element_factory_make ("capsfilter", NULL);
if (caps) { if (caps) {
g_object_set (capsfilter, "caps", caps, NULL); g_object_set (capsfilter, "caps", caps, NULL);
gst_caps_unref (caps);
} }
src = gst_element_factory_make (srcfactory, NULL); src = gst_element_factory_make (srcfactory, NULL);