Merge commit '088f38a4f9f54bb923405c67c9e72d96d90aa284'
* commit '088f38a4f9f54bb923405c67c9e72d96d90aa284': avcodec: Drop unnecessary ff_ name prefixes from static functions Conflicts: libavcodec/ass.c libavcodec/h264_parser.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
|
||||
volatile int ff_avcodec_locked;
|
||||
static int volatile entangled_thread_counter = 0;
|
||||
static int (*ff_lockmgr_cb)(void **mutex, enum AVLockOp op);
|
||||
static int (*lockmgr_cb)(void **mutex, enum AVLockOp op);
|
||||
static void *codec_mutex;
|
||||
static void *avformat_mutex;
|
||||
|
||||
@@ -2986,19 +2986,19 @@ AVHWAccel *ff_find_hwaccel(enum AVCodecID codec_id, enum AVPixelFormat pix_fmt)
|
||||
|
||||
int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op))
|
||||
{
|
||||
if (ff_lockmgr_cb) {
|
||||
if (ff_lockmgr_cb(&codec_mutex, AV_LOCK_DESTROY))
|
||||
if (lockmgr_cb) {
|
||||
if (lockmgr_cb(&codec_mutex, AV_LOCK_DESTROY))
|
||||
return -1;
|
||||
if (ff_lockmgr_cb(&avformat_mutex, AV_LOCK_DESTROY))
|
||||
if (lockmgr_cb(&avformat_mutex, AV_LOCK_DESTROY))
|
||||
return -1;
|
||||
}
|
||||
|
||||
ff_lockmgr_cb = cb;
|
||||
lockmgr_cb = cb;
|
||||
|
||||
if (ff_lockmgr_cb) {
|
||||
if (ff_lockmgr_cb(&codec_mutex, AV_LOCK_CREATE))
|
||||
if (lockmgr_cb) {
|
||||
if (lockmgr_cb(&codec_mutex, AV_LOCK_CREATE))
|
||||
return -1;
|
||||
if (ff_lockmgr_cb(&avformat_mutex, AV_LOCK_CREATE))
|
||||
if (lockmgr_cb(&avformat_mutex, AV_LOCK_CREATE))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@@ -3006,8 +3006,8 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op))
|
||||
|
||||
int ff_lock_avcodec(AVCodecContext *log_ctx)
|
||||
{
|
||||
if (ff_lockmgr_cb) {
|
||||
if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
|
||||
if (lockmgr_cb) {
|
||||
if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
|
||||
return -1;
|
||||
}
|
||||
entangled_thread_counter++;
|
||||
@@ -3027,8 +3027,8 @@ int ff_unlock_avcodec(void)
|
||||
av_assert0(ff_avcodec_locked);
|
||||
ff_avcodec_locked = 0;
|
||||
entangled_thread_counter--;
|
||||
if (ff_lockmgr_cb) {
|
||||
if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_RELEASE))
|
||||
if (lockmgr_cb) {
|
||||
if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_RELEASE))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@@ -3036,8 +3036,8 @@ int ff_unlock_avcodec(void)
|
||||
|
||||
int avpriv_lock_avformat(void)
|
||||
{
|
||||
if (ff_lockmgr_cb) {
|
||||
if ((*ff_lockmgr_cb)(&avformat_mutex, AV_LOCK_OBTAIN))
|
||||
if (lockmgr_cb) {
|
||||
if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_OBTAIN))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@@ -3045,8 +3045,8 @@ int avpriv_lock_avformat(void)
|
||||
|
||||
int avpriv_unlock_avformat(void)
|
||||
{
|
||||
if (ff_lockmgr_cb) {
|
||||
if ((*ff_lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE))
|
||||
if (lockmgr_cb) {
|
||||
if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user