History

lavfi: deprecate avfilter_link_free()

It never makes sense for this function to be called by users.

Anton Khirnov committed 2 years ago

Commit 6b1f41e1 parent c0aee393 files · +15 −3Browse files

Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.c+9−2
@@ -192,7 +192,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, · 191 unmodified lines
192 return 0;192 return 0;
193}193}
194 194
195void avfilter_link_free(AVFilterLink **link)195static void link_free(AVFilterLink **link)
196{196{
197 FilterLinkInternal *li;197 FilterLinkInternal *li;
198 198
@@ -207,6 +207,13 @@ void avfilter_link_free(AVFilterLink **link) · 8 unmodified lines
207 av_freep(link);207 av_freep(link);
208}208}
209 209
210#if FF_API_LINK_PUBLIC
211void avfilter_link_free(AVFilterLink **link)
212{
213 link_free(link);
214}
215#endif
216
210static void update_link_current_pts(FilterLinkInternal *li, int64_t pts)217static void update_link_current_pts(FilterLinkInternal *li, int64_t pts)
211{218{
212 AVFilterLink *const link = &li->l;219 AVFilterLink *const link = &li->l;
@@ -763,7 +770,7 @@ static void free_link(AVFilterLink *link) · 550 unmodified lines
763 ff_formats_unref(&link->outcfg.samplerates);770 ff_formats_unref(&link->outcfg.samplerates);
764 ff_channel_layouts_unref(&link->incfg.channel_layouts);771 ff_channel_layouts_unref(&link->incfg.channel_layouts);
765 ff_channel_layouts_unref(&link->outcfg.channel_layouts);772 ff_channel_layouts_unref(&link->outcfg.channel_layouts);
766 avfilter_link_free(&link);773 link_free(&link);
767}774}
768 775
769void avfilter_free(AVFilterContext *filter)776void avfilter_free(AVFilterContext *filter)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t