mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tests: Take account of memory alignment in shm test
This commit is contained in:
parent
037f277566
commit
e72f0eadd8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue