[vlc-commits] vout_subpictures: remove default buffer callback implementation

Steve Lhomme git at videolan.org
Wed Sep 18 09:06:18 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul 19 15:12:02 2019 +0200| [c98af497f851a530ef154559b1a88ea735c74cb2] | committer: Steve Lhomme

vout_subpictures: remove default buffer callback implementation

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

 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 c2b0d50ace..d7e7c6fdd8 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -221,13 +221,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)
@@ -274,10 +267,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,
@@ -301,8 +290,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->owner.video = &spu_scaler_cbs;
-
     scale->p_module = module_need(scale, "video converter", NULL, false);
     if (!scale->p_module)
     {



More information about the vlc-commits mailing list