From ca7a0b8e9ecbb730682385605d9398e74d107b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 29 May 2008 19:37:47 +0000 Subject: [PATCH] tests/check/elements/vorbisdec.c: Remove wrong_channels_identification_header unit test as we now support 7 (and more... Original commit message from CVS: * tests/check/elements/vorbisdec.c: (vorbisdec_suite): Remove wrong_channels_identification_header unit test as we now support 7 (and more channels). --- ChangeLog | 6 +++++ tests/check/elements/vorbisdec.c | 42 -------------------------------- 2 files changed, 6 insertions(+), 42 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21daf682b8..7112b028e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-29 Sebastian Dröge + + * tests/check/elements/vorbisdec.c: (vorbisdec_suite): + Remove wrong_channels_identification_header unit test as we now + support 7 (and more channels). + 2008-05-29 Sebastian Dröge * gst/audioconvert/gstchannelmix.c: diff --git a/tests/check/elements/vorbisdec.c b/tests/check/elements/vorbisdec.c index 66d7ba121f..587fd199aa 100644 --- a/tests/check/elements/vorbisdec.c +++ b/tests/check/elements/vorbisdec.c @@ -94,47 +94,6 @@ cleanup_vorbisdec (GstElement * vorbisdec) gst_check_teardown_element (vorbisdec); } -GST_START_TEST (test_wrong_channels_identification_header) -{ - GstElement *vorbisdec; - GstBuffer *inbuffer; - GstBus *bus; - GstMessage *message; - - vorbisdec = setup_vorbisdec (); - fail_unless (gst_element_set_state (vorbisdec, - GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, - "could not set to playing"); - bus = gst_bus_new (); - - inbuffer = gst_buffer_new_and_alloc (30); - memcpy (GST_BUFFER_DATA (inbuffer), identification_header, 30); - /* set the channel count to 7, which is not supported */ - GST_BUFFER_DATA (inbuffer)[11] = 7; - ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1); - gst_buffer_ref (inbuffer); - - gst_element_set_bus (vorbisdec, bus); - /* pushing gives away my reference ... */ - fail_unless_equals_int (gst_pad_push (mysrcpad, inbuffer), GST_FLOW_ERROR); - /* ... and nothing ends up on the global buffer list */ - ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1); - gst_buffer_unref (inbuffer); - fail_unless_equals_int (g_list_length (buffers), 0); - - fail_if ((message = gst_bus_pop (bus)) == NULL); - fail_unless_message_error (message, STREAM, NOT_IMPLEMENTED); - gst_message_unref (message); - gst_element_set_bus (vorbisdec, NULL); - - /* cleanup */ - gst_object_unref (GST_OBJECT (bus)); - cleanup_vorbisdec (vorbisdec); -} - -GST_END_TEST; - - GST_START_TEST (test_empty_identification_header) { GstElement *vorbisdec; @@ -371,7 +330,6 @@ vorbisdec_suite (void) suite_add_tcase (s, tc_chain); tcase_add_test (tc_chain, test_empty_identification_header); - tcase_add_test (tc_chain, test_wrong_channels_identification_header); tcase_add_test (tc_chain, test_identification_header); tcase_add_test (tc_chain, test_empty_vorbis_packet);