vsink_nullsink: switch to filter_frame
authorAnton Khirnov <anton@khirnov.net>
Wed, 28 Nov 2012 20:49:04 +0000 (21:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Nov 2012 20:49:04 +0000 (21:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsink_nullsink.c

index 89bf29a..a37d346 100644 (file)
 #include "internal.h"
 #include "libavutil/internal.h"
 
-static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
-{
-    return 0;
-}
-
-static int end_frame(AVFilterLink *link)
+static int filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
 {
+    avfilter_unref_bufferp(&frame);
     return 0;
 }
 
@@ -34,8 +30,7 @@ static const AVFilterPad avfilter_vsink_nullsink_inputs[] = {
     {
         .name        = "default",
         .type        = AVMEDIA_TYPE_VIDEO,
-        .start_frame = start_frame,
-        .end_frame   = end_frame,
+        .filter_frame = filter_frame,
     },
     { NULL },
 };