diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-06-14 18:10:52 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-06-14 18:10:52 +0200 |
commit | bbd7dee8f604bd0373a82e6e5cc3eec8313806ac (patch) | |
tree | dea6c4cc279d7aa4d612a685f667066838bc901a | |
parent | 5f74f3a82eb54f9a9517f99dffbe45ce4d474870 (diff) |
audioconvert: set pads negotiable
-rw-r--r-- | tests/check/elements/audioconvert.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/check/elements/audioconvert.c b/tests/check/elements/audioconvert.c index b5e292d56..bb4b38336 100644 --- a/tests/check/elements/audioconvert.c +++ b/tests/check/elements/audioconvert.c @@ -90,6 +90,8 @@ setup_audioconvert (GstCaps * outcaps) g_object_set (G_OBJECT (audioconvert), "noise-shaping", 0, NULL); mysrcpad = gst_check_setup_src_pad (audioconvert, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (audioconvert, &sinktemplate, NULL); + gst_pad_set_negotiable (mysrcpad, TRUE); + gst_pad_set_negotiable (mysinkpad, TRUE); /* this installs a getcaps func that will always return the caps we set * later */ gst_pad_use_fixed_caps (mysinkpad); @@ -1317,7 +1319,8 @@ GST_START_TEST (test_caps_negotiation) caps1 = gst_pad_get_caps (ac3_src); fail_if (caps1 == NULL, "gst_pad_get_caps returned NULL"); - GST_DEBUG ("Caps size 1 : %d", gst_caps_get_size (caps1)); + GST_DEBUG ("Caps size 1 : %" GST_PTR_FORMAT " %d", caps1, + gst_caps_get_size (caps1)); fail_if (gst_element_set_state (pipeline, GST_STATE_READY) == GST_STATE_CHANGE_FAILURE, "Failed to set test pipeline back to READY"); @@ -1337,7 +1340,8 @@ GST_START_TEST (test_caps_negotiation) caps2 = gst_pad_get_caps (ac3_src); fail_if (caps2 == NULL, "gst_pad_get_caps returned NULL"); - GST_DEBUG ("Caps size 2 : %d", gst_caps_get_size (caps2)); + GST_DEBUG ("Caps size 2 : %" GST_PTR_FORMAT " %d", caps2, + gst_caps_get_size (caps2)); fail_unless (gst_caps_get_size (caps1) == gst_caps_get_size (caps2)); gst_caps_unref (caps1); |