Commit 277b8c34 authored by Olivier Crête's avatar Olivier Crête 👻

tests: Take account of memory alignment in shm test

parent dc63c5ff
......@@ -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, &params);
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