diff options
author | Arun Raghavan <git@arunraghavan.net> | 2015-06-12 18:08:44 +0530 |
---|---|---|
committer | Arun Raghavan <git@arunraghavan.net> | 2015-06-13 16:03:58 +0530 |
commit | c7eb883e2239ee465ff4359398cfe8546a20e336 (patch) | |
tree | 318af508285c131cc70ca003703f015f2c286dd0 /sys | |
parent | e3ed00e4eb89a9821d57c6a81ce40d9d945833e9 (diff) | |
download | gstreamer-plugins-bad-c7eb883e2239ee465ff4359398cfe8546a20e336.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/opensles/openslescommon.c | 5 | ||||
-rw-r--r-- | sys/opensles/openslescommon.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/opensles/openslescommon.c b/sys/opensles/openslescommon.c index 3f4c89ecc..7dc4bb81f 100644 --- a/sys/opensles/openslescommon.c +++ b/sys/opensles/openslescommon.c @@ -20,6 +20,11 @@ #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 gst_opensles_recording_preset_get_type (void) { diff --git a/sys/opensles/openslescommon.h b/sys/opensles/openslescommon.h index 181442b3e..2b619ebc5 100644 --- a/sys/opensles/openslescommon.h +++ b/sys/opensles/openslescommon.h @@ -25,6 +25,8 @@ #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> +/* This is needed explicitly for API level < 14 */ +#include <SLES/OpenSLES_AndroidConfiguration.h> G_BEGIN_DECLS |