mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit '9993a067f6c8c7e7838052ac3146aa6b80dd7e81'
* commit '9993a067f6c8c7e7838052ac3146aa6b80dd7e81': lavc: Improve thread locking error message Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
79f013a206
@ -3608,7 +3608,10 @@ int ff_lock_avcodec(AVCodecContext *log_ctx)
|
||||
}
|
||||
entangled_thread_counter++;
|
||||
if (entangled_thread_counter != 1) {
|
||||
av_log(log_ctx, AV_LOG_ERROR, "Insufficient thread locking around avcodec_open/close()\n");
|
||||
av_log(log_ctx, AV_LOG_ERROR,
|
||||
"Insufficient thread locking. At least %d threads are "
|
||||
"calling avcodec_open2() at the same time right now.\n",
|
||||
entangled_thread_counter);
|
||||
if (!lockmgr_cb)
|
||||
av_log(log_ctx, AV_LOG_ERROR, "No lock manager is set, please see av_lockmgr_register()\n");
|
||||
ff_avcodec_locked = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user