History

Rename uninit() to avfilter_destroy_graph() and make it non-static Commited in SoC by Vitor Sessak on 2008-03-27 19:34:24

Originally committed as revision 12742 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak committed 18 years ago

Commit c4913b81 parent d66e9462 files · +7 −2Browse files

Unified · Split

2 files
  1. libavfilter/avfiltergraph.c +2 −2
  2. libavfilter/avfiltergraph.h +5 −0
libavfilter/avfiltergraph.c+2−2
@@ -84,7 +84,7 @@ static const AVClass filter_parser_class = { · 83 unmodified lines
84 84
85static const AVClass *log_ctx = &filter_parser_class;85static const AVClass *log_ctx = &filter_parser_class;
86 86
87static void uninit(AVFilterGraph *graph)87void avfilter_destroy_graph(AVFilterGraph *graph)
88{88{
89 for(; graph->filter_count > 0; graph->filter_count --)89 for(; graph->filter_count > 0; graph->filter_count --)
90 avfilter_destroy(graph->filters[graph->filter_count - 1]);90 avfilter_destroy(graph->filters[graph->filter_count - 1]);
@@ -306,7 +306,7 @@ static int load_from_desc(AVFilterGraph *graph, AVFilterGraphDesc *desc, AVFilte · 215 unmodified lines
306 return 0;306 return 0;
307 307
308fail:308fail:
309 uninit(graph);309 avfilter_destroy_graph(graph);
310 return -1;310 return -1;
311}311}
312 312
libavfilter/avfiltergraph.h+5−0
@@ -58,4 +58,9 @@ int avfilter_graph_config_formats(AVFilterGraph *graphctx); · 57 unmodified lines
58 */58 */
59int avfilter_graph_config_links(AVFilterGraph *graphctx);59int avfilter_graph_config_links(AVFilterGraph *graphctx);
60 60
61/**
62 * Free a graph and destroy its links.
63 */
64void avfilter_destroy_graph(AVFilterGraph *graph);
65
61#endif /* FFMPEG_AVFILTERGRAPH_H */66#endif /* FFMPEG_AVFILTERGRAPH_H */

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