[vlc-devel] [PATCH 02/36] video_output: add a dummy filter_video_callbacks for the blender
Steve Lhomme
robux4 at ycbcr.xyz
Thu Nov 21 15:13:53 CET 2019
Will be used in the next commit
---
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 9f4df44c401..856fc343d10 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;
--
2.17.1
More information about the vlc-devel
mailing list