tests: baseparse: set_sink_caps vfunc should't take ownership of the caps
authorMatej Knopp <matej.knopp@gmail.com>
Fri, 3 Oct 2014 11:14:25 +0000 (13:14 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 3 Oct 2014 11:35:40 +0000 (12:35 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=737762

tests/check/libs/baseparse.c

index e0cb3bb..4491c41 100644 (file)
@@ -68,7 +68,6 @@ static gboolean
 gst_parser_tester_set_sink_caps (GstBaseParse * parse, GstCaps * caps)
 {
   gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps);
-  gst_caps_unref (caps);
   return TRUE;
 }