Revert "audioconvert: set pads negotiable"
authorEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 11:09:29 +0000 (13:09 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 11:09:29 +0000 (13:09 +0200)
This reverts commit bbd7dee8f604bd0373a82e6e5cc3eec8313806ac.

tests/check/elements/audioconvert.c

index bb4b383..b5e292d 100644 (file)
@@ -90,8 +90,6 @@ 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);
@@ -1319,8 +1317,7 @@ 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 : %" GST_PTR_FORMAT " %d", caps1,
-      gst_caps_get_size (caps1));
+  GST_DEBUG ("Caps size 1 : %d", 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");
@@ -1340,8 +1337,7 @@ 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 : %" GST_PTR_FORMAT " %d", caps2,
-      gst_caps_get_size (caps2));
+  GST_DEBUG ("Caps size 2 : %d", gst_caps_get_size (caps2));
   fail_unless (gst_caps_get_size (caps1) == gst_caps_get_size (caps2));
 
   gst_caps_unref (caps1);