[vlc-commits] video_output: add a dummy filter_video_callbacks for the blender

Steve Lhomme git at videolan.org
Mon Dec 2 13:42:33 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Nov  6 11:52:19 2019 +0100| [df9253ac1d1039c767ffc022aaaa951932d5d719] | committer: Steve Lhomme

video_output: add a dummy filter_video_callbacks for the blender

Will be used in the next commit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df9253ac1d1039c767ffc022aaaa951932d5d719
---

 src/video_output/video_output.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 9f4df44c40..856fc343d1 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -958,6 +958,10 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse,
     return VLC_SUCCESS;
 }
 
+static const struct filter_video_callbacks vout_video_cbs = {
+    NULL, NULL /* TODO */
+};
+
 static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
                                      subpicture_t *subpic)
 {
@@ -968,7 +972,11 @@ static picture_t *ConvertRGB32AndBlend(vout_thread_t *vout, picture_t *pic,
 
     assert(vout->p->spu_blend);
 
-    filter_chain_t *filterc = filter_chain_NewVideo(vout, false, NULL);
+    filter_owner_t owner = {
+        .video = &vout_video_cbs,
+        .sys = vout,
+    };
+    filter_chain_t *filterc = filter_chain_NewVideo(vout, false, &owner);
     if (!filterc)
         return NULL;
 



More information about the vlc-commits mailing list