]> git.sesse.net Git - ffmpeg/commitdiff
lavc: Improve thread locking error message
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 11 Mar 2015 20:43:57 +0000 (20:43 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 13 Mar 2015 19:47:34 +0000 (19:47 +0000)
libavcodec/utils.c

index d568cbbf05701ec5df4e3cf382c416ad697cfb0b..7b169ff2095adc23670c25fcfe2407b82e93b49c 100644 (file)
@@ -1050,7 +1050,10 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
 
     entangled_thread_counter++;
     if (entangled_thread_counter != 1) {
-        av_log(avctx, AV_LOG_ERROR, "insufficient thread locking around avcodec_open/close()\n");
+        av_log(avctx, AV_LOG_ERROR,
+               "Insufficient thread locking. At least %d threads are "
+               "calling avcodec_open2() at the same time right now.\n",
+               entangled_thread_counter);
         ret = -1;
         goto end;
     }