[vlc-devel] [PATCH 09/14] vout blend: remove default buffer callback implementation

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 25 12:34:08 CEST 2019


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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index f5c2ad2f02..119ab7145a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -930,11 +930,6 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse, bool fra
     return VLC_SUCCESS;
 }
 
-static picture_t *ConvertRGB32AndBlendBufferNew(filter_t *filter)
-{
-    return picture_NewFromFormat(&filter->fmt_out.video);
-}
-
 static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
                                      subpicture_t *subpic)
 {
@@ -945,13 +940,7 @@ static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
 
     assert(vout->p->spu_blend);
 
-    static const struct filter_video_callbacks cbs = {
-        ConvertRGB32AndBlendBufferNew,
-    };
-    video_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