summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-04-09 16:20:44 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-04-09 16:20:44 +0100
commitd8dd4bea00c0809cb21f57a0a67d1625675af5e1 (patch)
tree2128ea6bd21fe65c2b2760958bef44686db42ed3 /tests
parent338bfe5e35956937db461f80f589cd483b063f22 (diff)
downloadgstreamer-plugins-bad-d8dd4bea00c0809cb21f57a0a67d1625675af5e1.tar.gz
tests: fix type mismatch in varargs passing
A bitmask is 64 bits, but integer immediates are passed as int in varargs, which happen to be 32 bit with high probability. This triggered a valgrind jump-relies-on-uninitalized-value report well away from the site, since it doesn't trigger on stack accesses, and there must have been enough zeroes to stop g_object_set at the right place.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/audiomixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check/elements/audiomixer.c b/tests/check/elements/audiomixer.c
index b6235dce0..ddfdbe188 100644
--- a/tests/check/elements/audiomixer.c
+++ b/tests/check/elements/audiomixer.c
@@ -90,7 +90,7 @@ GST_START_TEST (test_filter_caps)
"format", G_TYPE_STRING, GST_AUDIO_NE (F32),
"layout", G_TYPE_STRING, "interleaved",
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 1,
- "channel-mask", GST_TYPE_BITMASK, 0x04, NULL);
+ "channel-mask", GST_TYPE_BITMASK, (guint64) 0x04, NULL);
/* build pipeline */
pipeline = gst_pipeline_new ("pipeline");