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
8484
8585 static const AVClass *log_ctx = &filter_parser_class;
8686
87−static void uninit(AVFilterGraph *graph)
87+void avfilter_destroy_graph(AVFilterGraph *graph)
8888 {
8989 for(; graph->filter_count > 0; graph->filter_count --)
9090 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
306306 return 0;
307307
308308 fail:
309− uninit(graph);
309+ avfilter_destroy_graph(graph);
310310 return -1;
311311 }
312312
libavfilter/avfiltergraph.h+5−0
@@ -58,4 +58,9 @@ int avfilter_graph_config_formats(AVFilterGraph *graphctx); · 57 unmodified lines
5858 */
5959 int avfilter_graph_config_links(AVFilterGraph *graphctx);
6060
61+/**
62+ * Free a graph and destroy its links.
63+ */
64+void avfilter_destroy_graph(AVFilterGraph *graph);
65+
6166 #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