[vlc-devel] [PATCH 2/6] image: remove redundant decoder picture allocation

Steve Lhomme robux4 at ycbcr.xyz
Tue Jun 25 13:53:13 CEST 2019


The core can do it by default.
---
 src/misc/image.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/misc/image.c b/src/misc/image.c
index 7d48c8ae09..976e30dde0 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -662,11 +662,6 @@ static int video_update_format( decoder_t *p_dec )
     return 0;
 }
 
-static picture_t *video_new_buffer( decoder_t *p_dec )
-{
-    return picture_NewFromFormat( &p_dec->fmt_out.video );
-}
-
 static decoder_t *CreateDecoder( image_handler_t *p_image, const es_format_t *fmt )
 {
     decoder_t *p_dec;
@@ -684,7 +679,6 @@ static decoder_t *CreateDecoder( image_handler_t *p_image, const es_format_t *fm
     {
         .video = {
             .format_update = video_update_format,
-            .buffer_new = video_new_buffer,
             .queue = ImageQueueVideo,
         },
     };
-- 
2.17.1



More information about the vlc-devel mailing list