1 Star 0 Fork 8

liuyumeng/gstreamer-plugins-base

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-audioresample-Fix-build-on-x86-if-emmintrin.h-is-ava.patch 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
AlexZ11 提交于 2019-11-28 20:36 . gstreamer-plugins-base:initialize
From bde72c7bebaa9d10cd49ae5542d361bda7aa7bd0 Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <[email protected]>
Date: Mon, 20 Jan 2014 15:44:09 +0100
Subject: [PATCH 1/2] audioresample: Fix build on x86 if emmintrin.h is
available but can't be used
On i386, EMMINTRIN is defined but not usable without SSE so check for
__SSE__ and __SSE2__ as well.
https://bugzilla.gnome.org/show_bug.cgi?id=670690
---
gst/audioresample/resample.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c
index 98d006c..481fa01 100644
--- a/gst/audioresample/resample.c
+++ b/gst/audioresample/resample.c
@@ -77,13 +77,13 @@
#define EXPORT G_GNUC_INTERNAL
#ifdef _USE_SSE
-#ifndef HAVE_XMMINTRIN_H
+#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
#undef _USE_SSE
#endif
#endif
#ifdef _USE_SSE2
-#ifndef HAVE_EMMINTRIN_H
+#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
#undef _USE_SSE2
#endif
#endif
--
1.9.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuyumeng1/gstreamer-plugins-base.git
[email protected]:liuyumeng1/gstreamer-plugins-base.git
liuyumeng1
gstreamer-plugins-base
gstreamer-plugins-base
master

搜索帮助