OSDN Git Service

Deprecate avcodec_thread_init()
authorAlexander Strange <astrange@ithinksw.com>
Tue, 8 Feb 2011 02:15:45 +0000 (21:15 -0500)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 9 Feb 2011 14:17:28 +0000 (09:17 -0500)
commitc0b102ca03fe92250f1ce620aec3836f529fc1d6
tree1087a645990e02587a8c92c7d4298c25b3c4f55b
parent8e8cc52be3b515bc91cd9452daca7a65feaea5ad
Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the
next MAJOR libavcodec bump.

Rename the functions to ff_thread_init/free, since they are now internal.
Wrappers are provided to maintain API compatibility.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
doc/APIchanges
ffmpeg.c
ffplay.c
libavcodec/avcodec.h
libavcodec/pthread.c
libavcodec/thread.h
libavcodec/utils.c
libavcodec/w32thread.c