tests: Take account of memory alignment in shm test

This commit is contained in:
Olivier Crête 2014-06-02 21:51:38 -04:00
parent 037f277566
commit e72f0eadd8

View file

@ -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);