diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 9be4b082793c..0546fbdfbedc 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -927,7 +927,6 @@ class InternalFFMpegRegister if(!threadSafe) lock.lock(); static InternalFFMpegRegister instance; - initLogger_(); // update logger setup unconditionally (GStreamer's libav plugin may override these settings) } static void initLogger_() { @@ -965,6 +964,7 @@ class InternalFFMpegRegister /* register a callback function for synchronization */ av_lockmgr_register(&LockCallBack); #endif + initLogger_(); } ~InternalFFMpegRegister() {