]> git.sesse.net Git - ffmpeg/commit
avcodec/utils: Remove ff_codec_open2_recursive()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 27 Nov 2020 00:12:01 +0000 (01:12 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 4 Dec 2020 14:46:46 +0000 (15:46 +0100)
commit5766c8e968d17781c9e3c8f8d3676359457fe987
tree03cde6fc9fc8cfd9486cc8d3636506b3592d749b
parent1d2d91d1cfbd3fe31b1fbf84822aca5bc8187ac6
avcodec/utils: Remove ff_codec_open2_recursive()

This function existed to enable codecs with non-threadsafe init functions
to initialize other codecs despite the fact that normally no two codecs
with non-threadsafe init functions can be initialized at the same time
(there is a mutex guarding this). Yet there are no users of this
function any more as all users have been made thread-safe (switching
away from ff_codec_open2_recursive() was required for this as said
function requires the caller to hold the lock to the mutex guarding the
initializations and this is only true for codecs with the
FF_CODEC_CAP_INIT_THREADSAFE flag unset); so remove it.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/internal.h
libavcodec/utils.c