Originally committed as revision 12742 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 2 files). Show all
Unified · Split
| @@ -84,7 +84,7 @@ static const AVClass filter_parser_class = { · 83 unmodified lines | |||
| 84 | 84 | ||
| 85 | static const AVClass *log_ctx = &filter_parser_class; | 85 | static const AVClass *log_ctx = &filter_parser_class; |
| 86 | 86 | ||
| 87 | static void uninit(AVFilterGraph *graph) | 87 | void 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 | ||
| 308 | fail: | 308 | fail: |
| 309 | uninit(graph); | 309 | avfilter_destroy_graph(graph); |
| 310 | return -1; | 310 | return -1; |
| 311 | } | 311 | } |
| 312 | 312 | ||