pthreads: Fix bug introduced with thread_safe_callbacks
authorAlexander Strange <astrange@ithinksw.com>
Thu, 17 Feb 2011 08:25:00 +0000 (03:25 -0500)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 1 Mar 2011 16:39:12 +0000 (11:39 -0500)
commitad9791e12b6653a465803062e2543f25916300d3
tree4ac08d53edc03be941c7baade9f927a5c73cfb22
parent00ba041cb396f88f68a1bf7907e7c98ded3760ab
pthreads: Fix bug introduced with thread_safe_callbacks

For intra codecs, ff_thread_finish_setup() is called before decoding starts
automatically. However, get_buffer can only be used before it's called, so
adding this requirement broke frame threading for them. Fixed by moving the
call until after get_buffer is finished.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/pthread.c