summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-07-17 00:11:48 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-07-17 00:18:41 +0200
commit8d5217141a530e8d4e632bafa5a364c48b40f4f8 (patch)
treef4cbc777e0ce2d1eccc55fdaafc2cad6ca42bd7f
parentfe42739a3ef033251fc534a9c3b480d0a1ec4c2a (diff)
downloadgstreamer-plugins-bad-8d5217141a530e8d4e632bafa5a364c48b40f4f8.tar.gz
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.
-rw-r--r--sys/opensles/openslesringbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opensles/openslesringbuffer.c b/sys/opensles/openslesringbuffer.c
index 59db1bb3b..56fdccfa4 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;