Magellan Linux

Annotation of /trunk/gst-plugins-base/patches/gst-plugins-base-0.10.36-audioresample-fix-build-on-x86-if-emmintrin.h-is-available.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2929 - (hide annotations) (download)
Fri May 26 07:34:06 2017 UTC (7 years, 1 month ago) by niro
Original Path: trunk/gst-plugins-good/patches/gst-plugins-good-0.10.36-audioresample-fix-build-on-x86-if-emmintrin.h-is-available.patch
File size: 1000 byte(s)
-added build fixes
1 niro 2929 From bde72c7bebaa9d10cd49ae5542d361bda7aa7bd0 Mon Sep 17 00:00:00 2001
2     From: Antoine Jacoutot <ajacoutot@gnome.org>
3     Date: Mon, 20 Jan 2014 15:44:09 +0100
4     Subject: [PATCH 1/2] audioresample: Fix build on x86 if emmintrin.h is
5     available but can't be used
6    
7     On i386, EMMINTRIN is defined but not usable without SSE so check for
8     __SSE__ and __SSE2__ as well.
9    
10     https://bugzilla.gnome.org/show_bug.cgi?id=670690
11     ---
12     gst/audioresample/resample.c | 4 ++--
13     1 file changed, 2 insertions(+), 2 deletions(-)
14    
15     diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c
16     index 98d006c..481fa01 100644
17     --- a/gst/audioresample/resample.c
18     +++ b/gst/audioresample/resample.c
19     @@ -77,13 +77,13 @@
20     #define EXPORT G_GNUC_INTERNAL
21    
22     #ifdef _USE_SSE
23     -#ifndef HAVE_XMMINTRIN_H
24     +#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
25     #undef _USE_SSE
26     #endif
27     #endif
28    
29     #ifdef _USE_SSE2
30     -#ifndef HAVE_EMMINTRIN_H
31     +#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
32     #undef _USE_SSE2
33     #endif
34     #endif
35     --
36     1.9.0
37