diff options
author | Mark Thompson <[email protected]> | 2017-10-26 00:18:44 +0100 |
---|---|---|
committer | Mark Thompson <[email protected]> | 2017-12-19 23:22:31 +0000 |
commit | e2d575543ceeee72f12ac911e72f802bc6cba32e (patch) | |
tree | 99aa0ba5f4f9c6d89d636943da6f7e35acd7db18 /libavcodec/utils.c | |
parent | 39056b5240524e4119fa630240f9b45ea0230aad (diff) |
lavc: Deprecate av_hwaccel_next() and av_register_hwaccel()
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 3d6b35fa41..ba3457664a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1347,21 +1347,16 @@ const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *codec, int index) return &codec->hw_configs[index]->public; } -static AVHWAccel *first_hwaccel = NULL; - -void av_register_hwaccel(AVHWAccel *hwaccel) +#if FF_API_USER_VISIBLE_AVHWACCEL +AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel) { - AVHWAccel **p = &first_hwaccel; - while (*p) - p = &(*p)->next; - *p = hwaccel; - hwaccel->next = NULL; + return NULL; } -AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel) +void av_register_hwaccel(AVHWAccel *hwaccel) { - return hwaccel ? hwaccel->next : first_hwaccel; } +#endif int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)) { |