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

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:18:28 UTC 2013


The following commit has been merged in the experimental branch:
commit c4913b812ddac9b85fb0b213fc5433c75bf81fa8
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Fri Apr 4 20:09:14 2008 +0000

    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

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 059e6a3..a2dc93f 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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;
 }
 
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h
index ec1cf16..f856fbd 100644
--- a/libavfilter/avfiltergraph.h
+++ b/libavfilter/avfiltergraph.h
@@ -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 */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list