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/4668>
This commit is contained in:
Thibault Saunier 2023-05-18 09:27:29 -04:00 committed by GStreamer Marge Bot
parent b679469fac
commit 6dff93acf6

View file

@ -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);