Commit 8f68db9c authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

tests: audiodynamic: correctly port original test to mind in place transform

parent 8742a0a8
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment