diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-03-04 16:23:31 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-03-08 09:29:54 +0100 |
commit | abd7da0af95c9cbf077a28bdf8b4223c49db9654 (patch) | |
tree | 55034fd629eb3fb43d05b0dfe506a0975136f920 /libavfilter/avfilter.c | |
parent | 6b1f41e152cb05e9eed13baec2dca704bf917db0 (diff) | |
download | ffmpeg-abd7da0af95c9cbf077a28bdf8b4223c49db9654.tar.gz |
lavfi: deprecate avfilter_config_links()
It never makes sense for this function to be called by users.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 8a5f4282ad..596a1394fd 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -212,6 +212,10 @@ void avfilter_link_free(AVFilterLink **link) { link_free(link); } +int avfilter_config_links(AVFilterContext *filter) +{ + return ff_filter_config_links(EINVAL); +} #endif static void update_link_current_pts(FilterLinkInternal *li, int64_t pts) @@ -322,7 +326,7 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt, return 0; } -int avfilter_config_links(AVFilterContext *filter) +int ff_filter_config_links(AVFilterContext *filter) { int (*config_link)(AVFilterLink *); unsigned i; @@ -353,7 +357,7 @@ int avfilter_config_links(AVFilterContext *filter) case AVLINK_UNINIT: li->init_state = AVLINK_STARTINIT; - if ((ret = avfilter_config_links(link->src)) < 0) + if ((ret = ff_filter_config_links(link->src)) < 0) return ret; if (!(config_link = link->srcpad->config_props)) { |