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

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 25 09:09:39 2019 +0200| [705ed447df468c51c056e7872e70b9f7977eb070] | committer: Steve Lhomme

test: decoder: remove redundant decoder picture allocation

The core can do it by default and not a part being tested.

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

 test/src/input/decoder.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/test/src/input/decoder.c b/test/src/input/decoder.c
index 5773996b3f..137540662c 100644
--- a/test/src/input/decoder.c
+++ b/test/src/input/decoder.c
@@ -50,11 +50,6 @@ static inline struct decoder_owner *dec_get_owner(decoder_t *dec)
     return container_of(dec, struct decoder_owner, dec);
 }
 
-static picture_t *video_new_buffer_decoder(decoder_t *dec)
-{
-    return picture_NewFromFormat(&dec->fmt_out.video);
-}
-
 static subpicture_t *spu_new_buffer_decoder(decoder_t *dec,
                                             const subpicture_updater_t * p_subpic)
 {
@@ -141,7 +136,6 @@ decoder_t *test_decoder_create(vlc_object_t *parent, const es_format_t *fmt)
     static const struct decoder_owner_callbacks dec_video_cbs =
     {
         .video = {
-            .buffer_new = video_new_buffer_decoder,
             .queue = queue_video,
             .queue_cc = queue_cc,
         },



More information about the vlc-commits mailing list