Ticket #41152: patch-libstreamanalyzer-plugins-endplugins-ffmpegendanalyzer.cpp.diff
File patch-libstreamanalyzer-plugins-endplugins-ffmpegendanalyzer.cpp.diff, 1.2 KB (added by crazyhorse671@…, 11 years ago) |
---|
-
libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
old new 56 56 signed char analyze(AnalysisResult& idx, ::InputStream* in); 57 57 }; 58 58 59 STRIGI_MUTEX_DEFINE( mutex);59 STRIGI_MUTEX_DEFINE(strigi_mutex); 60 60 61 61 static int 62 62 lockmgr(void **mtx, enum AVLockOp op) { 63 63 // pre-allocating a single mutex is the only way to get it to work without changing strigi_thread.h 64 assert( (*mtx == & mutex) || (op == AV_LOCK_CREATE) );64 assert( (*mtx == &strigi_mutex) || (op == AV_LOCK_CREATE) ); 65 65 switch(op) { 66 66 case AV_LOCK_CREATE: 67 *mtx = & mutex;68 return !!STRIGI_MUTEX_INIT(& mutex);67 *mtx = &strigi_mutex; 68 return !!STRIGI_MUTEX_INIT(&strigi_mutex); 69 69 case AV_LOCK_OBTAIN: 70 return !!STRIGI_MUTEX_LOCK(& mutex);70 return !!STRIGI_MUTEX_LOCK(&strigi_mutex); 71 71 case AV_LOCK_RELEASE: 72 return !!STRIGI_MUTEX_UNLOCK(& mutex);72 return !!STRIGI_MUTEX_UNLOCK(&strigi_mutex); 73 73 case AV_LOCK_DESTROY: 74 STRIGI_MUTEX_DESTROY(& mutex);74 STRIGI_MUTEX_DESTROY(&strigi_mutex); 75 75 return 0; 76 76 } 77 77 return 1;