From 8d95c91805bd5b6c983187e517c92e68cda7ea46 Mon Sep 17 00:00:00 2001 From: Manfred Georg Date: Fri, 26 Sep 2014 09:44:25 -0700 Subject: [PATCH] set ffmpeg mutex to NULL on destruction. --- modules/videoio/src/cap_ffmpeg_impl.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 4a3b029b8..02aeec0aa 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -493,6 +493,7 @@ static int LockCallBack(void **mutex, AVLockOp op) localMutex->destroy(); free(localMutex); localMutex = NULL; + *mutex = NULL; break; } return 0;