From c4ae921ba6b45ddbba227f1006a672efc18cfc66 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 5 Jun 2012 09:21:10 +0200 Subject: [PATCH] tests: fix unit test Before we can change the caps on a sinkpad with fixed caps we need to unfix the pad caps. --- tests/check/gst/gstutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/gst/gstutils.c b/tests/check/gst/gstutils.c index d16341e..418f6b1 100644 --- a/tests/check/gst/gstutils.c +++ b/tests/check/gst/gstutils.c @@ -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); -- 2.7.4