Commit e94c7412 authored by vitor's avatar vitor

Rename uninit() to avfilter_destroy_graph() and make it non-static

Commited in SoC by Vitor Sessak on 2008-03-27 19:34:24


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12742 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e27e7ef2
......@@ -84,7 +84,7 @@ static const AVClass filter_parser_class = {
static const AVClass *log_ctx = &filter_parser_class;
static void uninit(AVFilterGraph *graph)
void avfilter_destroy_graph(AVFilterGraph *graph)
{
for(; graph->filter_count > 0; graph->filter_count --)
avfilter_destroy(graph->filters[graph->filter_count - 1]);
......@@ -306,7 +306,7 @@ static int load_from_desc(AVFilterGraph *graph, AVFilterGraphDesc *desc, AVFilte
return 0;
fail:
uninit(graph);
avfilter_destroy_graph(graph);
return -1;
}
......
......@@ -58,4 +58,9 @@ int avfilter_graph_config_formats(AVFilterGraph *graphctx);
*/
int avfilter_graph_config_links(AVFilterGraph *graphctx);
/**
* Free a graph and destroy its links.
*/
void avfilter_destroy_graph(AVFilterGraph *graph);
#endif /* FFMPEG_AVFILTERGRAPH_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment