diff -uNrp src/src/core/ffms.cpp src.new/src/core/ffms.cpp --- src/src/core/ffms.cpp 2016-01-18 22:02:19 +0300 +++ src.new/src/core/ffms.cpp 2016-01-18 22:05:02 +0300 @@ -29,7 +29,6 @@ extern "C" { #include } -#include #include #include @@ -37,7 +36,6 @@ extern "C" { # include #endif -static std::once_flag FFmpegOnce; static bool FFmpegInited = false; #ifdef FFMS_WIN_DEBUG @@ -77,7 +75,7 @@ void av_log_windebug_callback(void* ptr, #endif FFMS_API(void) FFMS_Init(int, int) { - std::call_once(FFmpegOnce, []() { + if (!FFmpegInited) { av_register_all(); avformat_network_init(); RegisterCustomParsers(); @@ -88,7 +86,7 @@ FFMS_API(void) FFMS_Init(int, int) { av_log_set_level(AV_LOG_QUIET); #endif FFmpegInited = true; - }); + } } FFMS_API(int) FFMS_GetVersion() {