summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-21 13:18:35 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-21 13:18:35 +0100
commita9b7e39c245d67fd1d775f28a1336d789600feda (patch)
tree30317f0dd6dcb378c740c190465fc02f067abe7c /tests
parent6d371c89c1194ef8c79bc19994f27358c8371236 (diff)
tests: fix after memory changes
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/mpeg2dec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/check/elements/mpeg2dec.c b/tests/check/elements/mpeg2dec.c
index 319fdbc6..df104021 100644
--- a/tests/check/elements/mpeg2dec.c
+++ b/tests/check/elements/mpeg2dec.c
@@ -1386,8 +1386,8 @@ GST_START_TEST (test_decode_stream1)
bus = gst_bus_new ();
inbuffer =
- gst_buffer_new_wrapped_full (test_stream1, NULL, 0,
- sizeof (test_stream1));
+ gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_stream1,
+ sizeof (test_stream1), 0, sizeof (test_stream1), NULL, NULL);
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
gst_buffer_ref (inbuffer);
@@ -1457,8 +1457,8 @@ GST_START_TEST (test_decode_stream2)
bus = gst_bus_new ();
inbuffer =
- gst_buffer_new_wrapped_full (test_stream2, NULL, 0,
- sizeof (test_stream2));
+ gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_stream2,
+ sizeof (test_stream2), 0, sizeof (test_stream2), NULL, NULL);
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
gst_buffer_ref (inbuffer);
@@ -1484,6 +1484,7 @@ GST_START_TEST (test_decode_stream2)
caps = gst_pad_get_current_caps (mysinkpad);
GST_LOG ("output caps %" GST_PTR_FORMAT, caps);
+ GST_LOG ("expected caps %" GST_PTR_FORMAT, out_caps);
fail_unless (gst_caps_is_equal_fixed (caps, out_caps), "Incorrect out caps");
gst_caps_unref (caps);