[vlc-commits] image: remove redundant decoder picture allocation

Steve Lhomme git at videolan.org
Wed Jun 26 07:24:17 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 25 09:08:45 2019 +0200| [300c17b42c5d0468333ca59bc85a701988cf4ec6] | committer: Steve Lhomme

image: remove redundant decoder picture allocation

The core can do it by default.

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

 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,
         },
     };



More information about the vlc-commits mailing list