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