diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-06-02 21:51:38 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-06-02 21:51:38 -0400 |
commit | e72f0eadd8b9c342f6979d10e3e70b3b49ef2672 (patch) | |
tree | 4a7dd2cca5c17320c5867791d8d0884277580cea /tests | |
parent | 037f27756618b919056756c25d9f38ff1243c55b (diff) | |
download | gstreamer-plugins-bad-e72f0eadd8b9c342f6979d10e3e70b3b49ef2672.tar.gz |
tests: Take account of memory alignment in shm test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/shm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/elements/shm.c b/tests/check/elements/shm.c index 741ff0109..f67e9ee02 100644 --- a/tests/check/elements/shm.c +++ b/tests/check/elements/shm.c @@ -143,6 +143,8 @@ GST_START_TEST (test_shm_alloc) g_object_get (sink, "shm-size", &size, NULL); + size -= params.align | gst_memory_alignment; + /* alloc buffer of max size, this way, it will block forever it a copy * is made inside shmsink*/ buf = gst_buffer_new_allocate (alloc, size, ¶ms); |