[FFmpeg-soc] [soc]: r2055 - in libavfilter: avfiltergraph.c avfiltergraph.h

vitor subversion at mplayerhq.hu
Thu Mar 27 20:34:24 CET 2008


Author: vitor
Date: Thu Mar 27 20:34:24 2008
New Revision: 2055

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

Modified:
   libavfilter/avfiltergraph.c
   libavfilter/avfiltergraph.h

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Thu Mar 27 20:34:24 2008
@@ -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 
     return 0;
 
 fail:
-    uninit(graph);
+    avfilter_destroy_graph(graph);
     return -1;
 }
 

Modified: libavfilter/avfiltergraph.h
==============================================================================
--- libavfilter/avfiltergraph.h	(original)
+++ libavfilter/avfiltergraph.h	Thu Mar 27 20:34:24 2008
@@ -58,4 +58,9 @@ int avfilter_graph_config_formats(AVFilt
  */
 int avfilter_graph_config_links(AVFilterGraph *graphctx);
 
+/**
+ * Free a graph and destroy its links.
+ */
+void avfilter_destroy_graph(AVFilterGraph *graph);
+
 #endif  /* FFMPEG_AVFILTERGRAPH_H */



More information about the FFmpeg-soc mailing list