mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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.
This commit is contained in:
parent
fe42739a3e
commit
8d5217141a
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ gst_opensles_ringbuffer_open_device (GstAudioRingBuffer * rb)
|
||||||
GST_WARNING_OBJECT (thiz, "outputMix.GetInterface failed(0x%08x)",
|
GST_WARNING_OBJECT (thiz, "outputMix.GetInterface failed(0x%08x)",
|
||||||
(guint32) result);
|
(guint32) result);
|
||||||
} else {
|
} else {
|
||||||
SLint32 numDevices = 0;
|
SLint32 numDevices = MAX_NUMBER_OUTPUT_DEVICES;
|
||||||
SLuint32 deviceIDs[MAX_NUMBER_OUTPUT_DEVICES];
|
SLuint32 deviceIDs[MAX_NUMBER_OUTPUT_DEVICES];
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue