[Midnightbsd-cvs] mports [15819] trunk/deskutils/libstreamanalyzer: add patch
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jan 5 23:01:28 EST 2014
Revision: 15819
http://svnweb.midnightbsd.org/mports/?rev=15819
Author: laffer1
Date: 2014-01-05 23:01:27 -0500 (Sun, 05 Jan 2014)
Log Message:
-----------
add patch
Modified Paths:
--------------
trunk/deskutils/libstreamanalyzer/Makefile
Added Paths:
-----------
trunk/deskutils/libstreamanalyzer/files/patch-libstreamanalyzer__plugins__endplugins__ffmpegendanalyzer.cpp
Modified: trunk/deskutils/libstreamanalyzer/Makefile
===================================================================
--- trunk/deskutils/libstreamanalyzer/Makefile 2014-01-06 03:46:23 UTC (rev 15818)
+++ trunk/deskutils/libstreamanalyzer/Makefile 2014-01-06 04:01:27 UTC (rev 15819)
@@ -19,7 +19,6 @@
USES= pkgconfig iconv
USE_GNOME= libxml2
USE_LDCONFIG= yes
-MAKE_JOBS_SAFE= yes
# supported versions: ffmpeg, ffmpeg1, ffmpeg-devel
# corresponding FFMPEG_SUFFIX: '', '1', '-devel'
Added: trunk/deskutils/libstreamanalyzer/files/patch-libstreamanalyzer__plugins__endplugins__ffmpegendanalyzer.cpp
===================================================================
--- trunk/deskutils/libstreamanalyzer/files/patch-libstreamanalyzer__plugins__endplugins__ffmpegendanalyzer.cpp (rev 0)
+++ trunk/deskutils/libstreamanalyzer/files/patch-libstreamanalyzer__plugins__endplugins__ffmpegendanalyzer.cpp 2014-01-06 04:01:27 UTC (rev 15819)
@@ -0,0 +1,50 @@
+From ae11c0b24fd3be995185ebdc5a5bbbb92ff30843 Mon Sep 17 00:00:00 2001
+From: Raphael Kubo da Costa <rakuco at FreeBSD.org>
+Date: Tue, 10 Sep 2013 17:50:56 +0300
+Subject: [PATCH] ffmpeg: Rename `mutex' to `g_mutex'.
+
+std::mutex is an actual type in C++11 and is implemented by libc++. The
+build was failing because references to `mutex' in lockmgr were ambiguous,
+as both the mutex variable defined above and std::mutex (because of the
+`using namespace std' statement) were found.
+---
+ plugins/endplugins/ffmpegendanalyzer.cpp | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/plugins/endplugins/ffmpegendanalyzer.cpp b/plugins/endplugins/ffmpegendanalyzer.cpp
+index f219912..eaed07f 100644
+--- libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
++++ libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
+@@ -56,22 +56,22 @@ public:
+ signed char analyze(AnalysisResult& idx, ::InputStream* in);
+ };
+
+-STRIGI_MUTEX_DEFINE(mutex);
++STRIGI_MUTEX_DEFINE(g_mutex);
+
+ static int
+ lockmgr(void **mtx, enum AVLockOp op) {
+ // pre-allocating a single mutex is the only way to get it to work without changing strigi_thread.h
+- assert( (*mtx == &mutex) || (op == AV_LOCK_CREATE) );
++ assert( (*mtx == &g_mutex) || (op == AV_LOCK_CREATE) );
+ switch(op) {
+ case AV_LOCK_CREATE:
+- *mtx = &mutex;
+- return !!STRIGI_MUTEX_INIT(&mutex);
++ *mtx = &g_mutex;
++ return !!STRIGI_MUTEX_INIT(&g_mutex);
+ case AV_LOCK_OBTAIN:
+- return !!STRIGI_MUTEX_LOCK(&mutex);
++ return !!STRIGI_MUTEX_LOCK(&g_mutex);
+ case AV_LOCK_RELEASE:
+- return !!STRIGI_MUTEX_UNLOCK(&mutex);
++ return !!STRIGI_MUTEX_UNLOCK(&g_mutex);
+ case AV_LOCK_DESTROY:
+- STRIGI_MUTEX_DESTROY(&mutex);
++ STRIGI_MUTEX_DESTROY(&g_mutex);
+ return 0;
+ }
+ return 1;
+--
+1.8.4
+
More information about the Midnightbsd-cvs
mailing list