[vlc-devel] [PATCH 10/14] vout_subpictures: remove default buffer callback implementation

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


---
 src/video_output/vout_subpictures.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index fcc21ce0ca..155467952d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -198,13 +198,6 @@ static void FilterRelease(filter_t *filter)
     vlc_object_delete(filter);
 }
 
-static picture_t *spu_new_video_buffer(filter_t *filter)
-{
-    const video_format_t *fmt = &filter->fmt_out.video;
-
-    return picture_NewFromFormat(fmt);
-}
-
 static int spu_get_attachments(filter_t *filter,
                                input_attachment_t ***attachment_ptr,
                                int *attachment_count)
@@ -251,10 +244,6 @@ static filter_t *SpuRenderCreateAndLoadText(spu_t *spu)
     return text;
 }
 
-static const struct filter_video_callbacks spu_scaler_cbs = {
-    spu_new_video_buffer,
-};
-
 static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
                                              vlc_fourcc_t src_chroma,
                                              vlc_fourcc_t dst_chroma,
@@ -278,8 +267,6 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
     scale->fmt_out.video.i_height =
     scale->fmt_out.video.i_visible_height = require_resize ? 16 : 32;
 
-    scale->video_owner.video = &spu_scaler_cbs;
-
     scale->p_module = module_need(scale, "video converter", NULL, false);
     if (!scale->p_module)
     {
-- 
2.17.1



More information about the vlc-devel mailing list