[vlc-devel] [PATCH] Avcodec: limit the number of threads automatically selected to 12
funman at videolan.org
Thu Dec 29 09:40:06 CET 2011
Le 11-12-29 03:31, Denis Charmet a écrit :
> Le mercredi 28 décembre 2011 à 11:59:49, Rafaël Carré a écrit :
>> Le 2011-12-28 21:08, Jean-Baptiste Kempf a écrit :
>>> It seems that over 16 doesn't behave well. Reduce it further for safety
>> What is the problem exactly ?
> IMO, as I said earlier I strongly suspect a race condition in picture
> pool with two threads working on the same picture. Would'nt it be
> cleaner and safer to just lock/unlock around decoder_NewPicture in
> avcodec/video.c ?
How does using 12 or 16 threads only help in that regard?
VLC shouldn't use more threads than the number of cores anyway.
More information about the vlc-devel