tests: fix unit test

Before we can change the caps on a sinkpad with fixed caps we need to unfix the
pad caps.
This commit is contained in:
Wim Taymans 2012-06-05 09:21:10 +02:00
parent b0756827f6
commit c4ae921ba6

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