projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
037f277
)
tests: Take account of memory alignment in shm test
author
Olivier Crête
<olivier.crete@collabora.com>
Tue, 3 Jun 2014 01:51:38 +0000
(21:51 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Tue, 3 Jun 2014 01:51:38 +0000
(21:51 -0400)
tests/check/elements/shm.c
patch
|
blob
|
history
diff --git
a/tests/check/elements/shm.c
b/tests/check/elements/shm.c
index 741ff0109d1aadfcb5a749a0a5e13f5c36e1877d..f67e9ee0289961c09ec16a0aa1f1eb9fd448fead 100644
(file)
--- 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);