[vlc-devel] [PATCH 06/15] vout blend: remove default buffer callback implementation

Steve Lhomme robux4 at ycbcr.xyz
Fri Jul 19 15:32:10 CEST 2019


---
 src/video_output/video_output.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 8dffb00080..13751379d2 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -928,12 +928,6 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse, bool fra
     return VLC_SUCCESS;
 }
 
-static picture_t *ConvertRGB32AndBlendBufferNew(filter_t *filter, void *opaque)
-{
-    (void) opaque;
-    return picture_NewFromFormat(&filter->fmt_out.video);
-}
-
 static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
                                      subpicture_t *subpic)
 {
@@ -944,13 +938,7 @@ static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
 
     assert(vout->p->spu_blend);
 
-    static const struct filter_video_callbacks cbs = {
-        .buffer_new = ConvertRGB32AndBlendBufferNew,
-    };
-    filter_owner_t owner = {
-        .video = &cbs,
-    };
-    filter_chain_t *filterc = filter_chain_NewVideo(vout, false, &owner);
+    filter_chain_t *filterc = filter_chain_NewVideo(vout, false, NULL);
     if (!filterc)
         return NULL;
 
-- 
2.17.1



More information about the vlc-devel mailing list