History

Rename avfilter_destroy() as avfilter_free().

The new name is shorter and more consistent with the FFmpeg API, and sounds less evil. Originally committed as revision 25707 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 24de0ed1 parent 7b393736 files · +13 −9Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 6 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+2−2
@@ -34,7 +34,7 @@ AVFilterGraph *avfilter_graph_alloc(void) · 33 unmodified lines
34void avfilter_graph_free(AVFilterGraph *graph)34void avfilter_graph_free(AVFilterGraph *graph)
35{35{
36 for(; graph->filter_count > 0; graph->filter_count --)36 for(; graph->filter_count > 0; graph->filter_count --)
37 avfilter_destroy(graph->filters[graph->filter_count - 1]);37 avfilter_free(graph->filters[graph->filter_count - 1]);
38 av_freep(&graph->scale_sws_opts);38 av_freep(&graph->scale_sws_opts);
39 av_freep(&graph->filters);39 av_freep(&graph->filters);
40}40}
@@ -143,7 +143,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 102 unmodified lines
143 snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);143 snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);
144 if(!scale || scale->filter->init(scale, scale_args, NULL) ||144 if(!scale || scale->filter->init(scale, scale_args, NULL) ||
145 avfilter_insert_filter(link, scale, 0, 0)) {145 avfilter_insert_filter(link, scale, 0, 0)) {
146 avfilter_destroy(scale);146 avfilter_free(scale);
147 return -1;147 return -1;
148 }148 }
149 149

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