tests: fix unit test
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Jun 2012 07:21:10 +0000 (09:21 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Jun 2012 07:21:10 +0000 (09:21 +0200)
Before we can change the caps on a sinkpad with fixed caps we need to unfix the
pad caps.

tests/check/gst/gstutils.c

index d16341e..418f6b1 100644 (file)
@@ -1025,6 +1025,7 @@ GST_START_TEST (test_pad_proxy_query_caps_aggregation)
 
   /* test intersection */
   caps = gst_caps_new_simple ("foo/bar", "barversion", G_TYPE_INT, 1, NULL);
+  GST_OBJECT_FLAG_UNSET (sink2_sink, GST_PAD_FLAG_FIXED_CAPS);
   fail_unless (gst_pad_set_caps (sink2_sink, caps));
   gst_pad_use_fixed_caps (sink2_sink);
   gst_caps_unref (caps);