summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-11 20:43:57 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-03-13 19:47:34 +0000
commit9993a067f6c8c7e7838052ac3146aa6b80dd7e81 (patch)
tree6f7997812c16e24c92cca5830dff5633b2f3daad /libavcodec/utils.c
parent913aa9a4874418724183a3ec862cdc63b829367d (diff)
lavc: Improve thread locking error message
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d568cbbf05..7b169ff209 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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;
}