diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-21 13:23:42 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-21 13:23:42 +0100 |
commit | 351f13bd4235aab3fadbd50e3449adffe0463d6f (patch) | |
tree | ea9a9660b642d509c95b5d37f80e47f3ce072825 | |
parent | 289e9683e942565c8fd11b9fd9d108fc6374ce87 (diff) | |
download | gstreamer-plugins-bad-351f13bd4235aab3fadbd50e3449adffe0463d6f.tar.gz |
tests: update for memory api changes
-rw-r--r-- | tests/check/elements/h264parse.c | 4 | ||||
-rw-r--r-- | tests/check/elements/jpegparse.c | 8 | ||||
-rw-r--r-- | tests/check/elements/mxfdemux.c | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/tests/check/elements/h264parse.c b/tests/check/elements/h264parse.c index 51c76da67..8a7672480 100644 --- a/tests/check/elements/h264parse.c +++ b/tests/check/elements/h264parse.c @@ -292,8 +292,8 @@ GST_START_TEST (test_parse_packetized) /* some caps messing */ caps = gst_caps_from_string (SRC_CAPS_TMPL); cdata = - gst_buffer_new_wrapped_full (h264_codec_data, NULL, 0, - sizeof (h264_codec_data)); + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_codec_data, + sizeof (h264_codec_data), 0, sizeof (h264_codec_data), NULL, NULL); gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, cdata, NULL); gst_buffer_unref (cdata); desc = gst_caps_to_string (caps); diff --git a/tests/check/elements/jpegparse.c b/tests/check/elements/jpegparse.c index dbb3452e7..fa8c63ac5 100644 --- a/tests/check/elements/jpegparse.c +++ b/tests/check/elements/jpegparse.c @@ -157,7 +157,9 @@ _make_buffers_in (GList * buffer_in, guint8 * test_data, gsize test_data_size) gsize i; for (i = 0; i < test_data_size; i++) { - buffer = gst_buffer_new_wrapped_full (test_data + i, NULL, 0, 1); + buffer = + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_data + i, 1, + 0, 1, NULL, NULL); buffer_in = g_list_append (buffer_in, buffer); } return buffer_in; @@ -171,7 +173,9 @@ _make_buffers_out (GList * buffer_out, guint8 * test_data, gsize test_data_size) { GstBuffer *buffer; - buffer = gst_buffer_new_wrapped_full (test_data, NULL, 0, test_data_size); + buffer = + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_data, + test_data_size, 0, test_data_size, NULL, NULL); buffer_out = g_list_append (buffer_out, buffer); return buffer_out; diff --git a/tests/check/elements/mxfdemux.c b/tests/check/elements/mxfdemux.c index a3414f425..d84ae32a1 100644 --- a/tests/check/elements/mxfdemux.c +++ b/tests/check/elements/mxfdemux.c @@ -134,8 +134,8 @@ _src_getrange (GstPad * pad, GstObject * parent, guint64 offset, guint length, if (offset + length > sizeof (mxf_file)) return GST_FLOW_EOS; - *buffer = gst_buffer_new_wrapped_full ((guint8 *) (mxf_file + offset), NULL, - 0, length); + *buffer = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, + (guint8 *) (mxf_file + offset), length, 0, length, NULL, NULL); return GST_FLOW_OK; } @@ -229,8 +229,8 @@ GST_START_TEST (test_push) fail_unless (sinkpad != NULL); buffer = - gst_buffer_new_wrapped_full ((guint8 *) mxf_file, NULL, 0, - sizeof (mxf_file)); + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, + (guint8 *) mxf_file, sizeof (mxf_file), 0, sizeof (mxf_file), NULL, NULL); GST_BUFFER_OFFSET (buffer) = 0; mysinkpad = _create_sink_pad (); |