summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2013-11-16 21:23:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-20 14:03:05 +0000
commit686ee2f13673d48d8c7666d4fa1806e98b037561 (patch)
tree8f764e28954797ea60e87a82ef5dff844a4d6e3d /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch
parent4571c9e963c667bce8b61e88816b34ba74b2aab7 (diff)
downloadopenembedded-core-contrib-686ee2f13673d48d8c7666d4fa1806e98b037561.tar.gz
gstreamer1.0: upgrade to 1.2.0
starting with this version, the recipes enable Orc acceleration by default Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch
new file mode 100644
index 0000000000..6299a475ab
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch
@@ -0,0 +1,35 @@
+commit 1ab90f259fee4fa9a7c10dac0a1e85799a15881b
+Author: Sebastian Dröge <slomo@circular-chaos.org>
+Date: Wed Sep 25 20:25:03 2013 +0200
+
+ bluez: Fix compilation on big endian systems
+
+Upstream-Status: Backport
+
+diff --git a/sys/bluez/gstavdtputil.c b/sys/bluez/gstavdtputil.c
+index dea803a..ed5c276 100644
+--- a/sys/bluez/gstavdtputil.c
++++ b/sys/bluez/gstavdtputil.c
+@@ -611,11 +611,11 @@ gst_avdtp_util_parse_aac_raw (void *config)
+ GValue value = G_VALUE_INIT;
+ GValue value_str = G_VALUE_INIT;
+ GValue list = G_VALUE_INIT;
++ a2dp_aac_t aac_local = { 0 };
++ a2dp_aac_t *aac = &aac_local;
+
+ #if G_BYTE_ORDER == G_LITTLE_ENDIAN
+ uint8_t *raw = (uint8_t *) config;
+- a2dp_aac_t aac_local = { 0 };
+- a2dp_aac_t *aac = &aac_local;
+ aac->object_type = raw[0];
+ aac->frequency = (raw[1] << 4) | ((raw[2] & 0xFF) >> 4);
+ aac->channels = (raw[2] >> 2) & 0x3;
+@@ -624,7 +624,7 @@ gst_avdtp_util_parse_aac_raw (void *config)
+ aac->bitrate = (raw[4] << 16) | (raw[3] << 8) | raw[4];
+ aac->bitrate &= ~0x800000;
+ #elif G_BYTE_ORDER == G_BIG_ENDIAN
+- *aac = (a2dp_aac_t *) config;
++ *aac = *((a2dp_aac_t *) config);
+ #else
+ #error "Unknown byte order"
+ #endif