From: Mark Nauwelaerts Date: Wed, 28 Mar 2012 10:16:45 +0000 (+0200) Subject: tests: audiodynamic: correctly port original test to mind in place transform X-Git-Tag: 1.19.3~509^2~7175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f68db9cc3a9c7ee4a193cb42a9999109ff077ef;p=platform%2Fupstream%2Fgstreamer.git tests: audiodynamic: correctly port original test to mind in place transform --- diff --git a/tests/check/elements/audiodynamic.c b/tests/check/elements/audiodynamic.c index 73339e6..63602b0 100644 --- a/tests/check/elements/audiodynamic.c +++ b/tests/check/elements/audiodynamic.c @@ -150,9 +150,8 @@ GST_START_TEST (test_compress_hard_50_50) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps)); @@ -199,9 +198,8 @@ GST_START_TEST (test_compress_soft_50_50) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps)); @@ -248,9 +246,8 @@ GST_START_TEST (test_compress_hard_100_50) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps)); @@ -298,9 +295,8 @@ GST_START_TEST (test_expand_hard_50_200) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps)); @@ -347,9 +343,8 @@ GST_START_TEST (test_expand_soft_50_200) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps)); @@ -396,9 +391,8 @@ GST_START_TEST (test_expand_hard_0_200) GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); - inbuffer = - gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, 16, 0, 16, - NULL, NULL); + inbuffer = gst_buffer_new_and_alloc (16); + gst_buffer_fill (inbuffer, 0, in, 16); fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0); caps = gst_caps_from_string (DYNAMIC_CAPS_STRING); fail_unless (gst_pad_set_caps (mysrcpad, caps));