[vlc-commits] test: decoder: do not get any decoder device for tests

Steve Lhomme git at videolan.org
Fri Nov 15 12:29:07 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov  4 12:47:35 2019 +0100| [005f392377ed9d59870028a5a08d99a3c1eba953] | committer: Steve Lhomme

test: decoder: do not get any decoder device for tests

Maybe later we can have a dummy decoder device for tests.

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

 test/src/input/decoder.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/src/input/decoder.c b/test/src/input/decoder.c
index 137540662c..f91350835e 100644
--- a/test/src/input/decoder.c
+++ b/test/src/input/decoder.c
@@ -57,6 +57,13 @@ static subpicture_t *spu_new_buffer_decoder(decoder_t *dec,
     return subpicture_New (p_subpic);
 }
 
+static vlc_decoder_device * get_no_device( decoder_t *dec )
+{
+    (void) dec;
+    // no decoder device for this test
+    return NULL;
+}
+
 static void queue_video(decoder_t *dec, picture_t *pic)
 {
     (void) dec;
@@ -136,6 +143,7 @@ decoder_t *test_decoder_create(vlc_object_t *parent, const es_format_t *fmt)
     static const struct decoder_owner_callbacks dec_video_cbs =
     {
         .video = {
+            .get_device = get_no_device,
             .queue = queue_video,
             .queue_cc = queue_cc,
         },



More information about the vlc-commits mailing list