mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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.
This commit is contained in:
parent
338bfe5e35
commit
d8dd4bea00
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ GST_START_TEST (test_filter_caps)
|
||||||
"format", G_TYPE_STRING, GST_AUDIO_NE (F32),
|
"format", G_TYPE_STRING, GST_AUDIO_NE (F32),
|
||||||
"layout", G_TYPE_STRING, "interleaved",
|
"layout", G_TYPE_STRING, "interleaved",
|
||||||
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 1,
|
"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 */
|
/* build pipeline */
|
||||||
pipeline = gst_pipeline_new ("pipeline");
|
pipeline = gst_pipeline_new ("pipeline");
|
||||||
|
|
Loading…
Reference in a new issue