From 8d5217141a530e8d4e632bafa5a364c48b40f4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Jul 2014 00:11:48 +0200 Subject: [PATCH] openslesringbuffer: Provide the size of our array to GetDestinationOutputDeviceIDs Otherwise it does not and just fails. It needs to know the size of the array to not write too much to it. --- sys/opensles/openslesringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/opensles/openslesringbuffer.c b/sys/opensles/openslesringbuffer.c index 59db1bb3ba..56fdccfa4b 100644 --- a/sys/opensles/openslesringbuffer.c +++ b/sys/opensles/openslesringbuffer.c @@ -726,7 +726,7 @@ gst_opensles_ringbuffer_open_device (GstAudioRingBuffer * rb) GST_WARNING_OBJECT (thiz, "outputMix.GetInterface failed(0x%08x)", (guint32) result); } else { - SLint32 numDevices = 0; + SLint32 numDevices = MAX_NUMBER_OUTPUT_DEVICES; SLuint32 deviceIDs[MAX_NUMBER_OUTPUT_DEVICES]; gint i;