diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-30 20:13:08 +0400 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-30 20:15:34 +0400 |
commit | 3d61d12e03f8c661552454c351e40b1c2da95470 (patch) | |
tree | 99abc096040b3a67c43d04fa368bf503c3ce6a85 /tests | |
parent | df946f603fbb5486ef947feaec2c93640908f8d1 (diff) |
update for buffer api change
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/deinterleave.c | 2 | ||||
-rw-r--r-- | tests/check/elements/interleave.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/deinterleave.c b/tests/check/elements/deinterleave.c index a2c802d78..7ff393e6f 100644 --- a/tests/check/elements/deinterleave.c +++ b/tests/check/elements/deinterleave.c @@ -454,7 +454,7 @@ src_handoff_float32_8ch (GstElement * src, GstBuffer * buf, GstPad * pad, } buf = gst_buffer_new (); - gst_buffer_take_memory (buf, -1, gst_memory_new_wrapped (0, data, + gst_buffer_append_memory (buf, gst_memory_new_wrapped (0, data, size, 0, size, data, g_free)); GST_BUFFER_OFFSET (buf) = 0; GST_BUFFER_TIMESTAMP (buf) = 0; diff --git a/tests/check/elements/interleave.c b/tests/check/elements/interleave.c index 6f2d51f40..f48e3a3f5 100644 --- a/tests/check/elements/interleave.c +++ b/tests/check/elements/interleave.c @@ -419,7 +419,7 @@ src_handoff_float32 (GstElement * element, GstBuffer * buffer, GstPad * pad, for (i = 0; i < 48000; i++) data[i] = (n % 2 == 0) ? -1.0 : 1.0; - gst_buffer_take_memory (buffer, -1, gst_memory_new_wrapped (0, data, + gst_buffer_append_memory (buffer, gst_memory_new_wrapped (0, data, size, 0, size, data, g_free)); GST_BUFFER_OFFSET (buffer) = GST_BUFFER_OFFSET_NONE; |