[FFmpeg-cvslog] lavfi/buffersink: rename filter structures.

Nicolas George git at videolan.org
Tue Mar 12 23:47:01 CET 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Mar 11 21:26:03 2013 +0100| [9a2688826dd479df2edd3967435afc1fb33b433f] | committer: Nicolas George

lavfi/buffersink: rename filter structures.

Reduce the diff with the fork.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a2688826dd479df2edd3967435afc1fb33b433f
---

 libavfilter/allfilters.c |    8 ++------
 libavfilter/buffersink.c |   12 ++++++------
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c
index f9e5d50..f83cdc4 100644
--- a/libavfilter/allfilters.c
+++ b/libavfilter/allfilters.c
@@ -185,17 +185,13 @@ void avfilter_register_all(void)
 
     REGISTER_FILTER_UNCONDITIONAL(vsink_ffbuffersink);
     REGISTER_FILTER_UNCONDITIONAL(asink_ffabuffersink);
-#if !AV_HAVE_INCOMPATIBLE_FORK_ABI
-    REGISTER_FILTER_UNCONDITIONAL(vsink_buffersink);
-    REGISTER_FILTER_UNCONDITIONAL(asink_abuffersink);
-#endif
 
     /* those filters are part of public or internal API => registered
      * unconditionally */
     REGISTER_FILTER_UNCONDITIONAL(asrc_abuffer);
     REGISTER_FILTER_UNCONDITIONAL(vsrc_buffer);
-    //REGISTER_FILTER_UNCONDITIONAL(asink_abuffer);
-    //REGISTER_FILTER_UNCONDITIONAL(vsink_buffer);
+    REGISTER_FILTER_UNCONDITIONAL(asink_abuffer);
+    REGISTER_FILTER_UNCONDITIONAL(vsink_buffer);
     REGISTER_FILTER_UNCONDITIONAL(af_afifo);
     REGISTER_FILTER_UNCONDITIONAL(vf_fifo);
 }
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index a3e3095..4b9918e 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -512,7 +512,7 @@ AVFilter avfilter_asink_ffabuffersink = {
     .outputs       = NULL,
 };
 
-static const AVFilterPad buffersink_inputs[] = {
+static const AVFilterPad avfilter_vsink_buffer_inputs[] = {
     {
         .name        = "default",
         .type        = AVMEDIA_TYPE_VIDEO,
@@ -521,7 +521,7 @@ static const AVFilterPad buffersink_inputs[] = {
     { NULL }
 };
 
-AVFilter avfilter_vsink_buffersink = {
+AVFilter avfilter_vsink_buffer = {
     .name      = "buffersink",
     .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."),
     .priv_size = sizeof(BufferSinkContext),
@@ -529,11 +529,11 @@ AVFilter avfilter_vsink_buffersink = {
     .uninit    = uninit,
 
     .query_formats = vsink_query_formats,
-    .inputs    = buffersink_inputs,
+    .inputs    = avfilter_vsink_buffer_inputs,
     .outputs   = NULL,
 };
 
-static const AVFilterPad abuffersink_inputs[] = {
+static const AVFilterPad avfilter_asink_abuffer_inputs[] = {
     {
         .name           = "default",
         .type           = AVMEDIA_TYPE_AUDIO,
@@ -542,7 +542,7 @@ static const AVFilterPad abuffersink_inputs[] = {
     { NULL }
 };
 
-AVFilter avfilter_asink_abuffersink = {
+AVFilter avfilter_asink_abuffer = {
     .name      = "abuffersink",
     .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."),
     .priv_size = sizeof(BufferSinkContext),
@@ -550,6 +550,6 @@ AVFilter avfilter_asink_abuffersink = {
     .uninit    = uninit,
 
     .query_formats = asink_query_formats,
-    .inputs    = abuffersink_inputs,
+    .inputs    = avfilter_asink_abuffer_inputs,
     .outputs   = NULL,
 };



More information about the ffmpeg-cvslog mailing list