mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
opensles: Fix build with Android API level < 14
Headers were broken on older Android versions, apparently. https://bugzilla.gnome.org/show_bug.cgi?id=744459
This commit is contained in:
parent
e3ed00e4eb
commit
c7eb883e22
2 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
||||||
|
|
||||||
#include "openslescommon.h"
|
#include "openslescommon.h"
|
||||||
|
|
||||||
|
#ifndef SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION
|
||||||
|
/* This was added in Android API level 14 */
|
||||||
|
#define SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION ((SLuint32) 0x00000004)
|
||||||
|
#endif
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_opensles_recording_preset_get_type (void)
|
gst_opensles_recording_preset_get_type (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
#include <SLES/OpenSLES.h>
|
#include <SLES/OpenSLES.h>
|
||||||
#include <SLES/OpenSLES_Android.h>
|
#include <SLES/OpenSLES_Android.h>
|
||||||
|
/* This is needed explicitly for API level < 14 */
|
||||||
|
#include <SLES/OpenSLES_AndroidConfiguration.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue