[vlc-commits] [Git][videolan/vlc][master] test: input: decoder: add missing decoder_decode

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Dec 11 18:22:34 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
3bb353e3 by Alexandre Janniaux at 2022-12-11T18:11:16+00:00
test: input: decoder: add missing decoder_decode

The scenario is popping a decoder but didn't have a decoder_decode
function, leading to spurrious assertion when the first
decoder_t::pf_decode was called before the test really happens and stop.

Code missing from commit d794eac3cf4b8e0aa346af8736fe10ac5252383d.

Fixes #27578

- - - - -


1 changed file:

- test/src/input/decoder/input_decoder_scenarios.c


Changes:

=====================================
test/src/input/decoder/input_decoder_scenarios.c
=====================================
@@ -117,6 +117,13 @@ static picture_context_t * context_copy(picture_context_t *context)
     return context;
 }
 
+static int decoder_decode_drop(decoder_t *dec, picture_t *pic)
+{
+    (void)dec;
+    picture_Release(pic);
+    return VLC_SUCCESS;
+}
+
 static int decoder_decode_check_flush_video(decoder_t *dec, picture_t *pic)
 {
     if (scenario_data.skip_decoder)
@@ -355,6 +362,7 @@ struct input_decoder_scenario input_decoder_scenarios[] =
      * test from issue #27532. */
     .source = source_800_600,
     .decoder_setup = decoder_i420_800_600_stop,
+    .decoder_decode = decoder_decode_drop,
     .decoder_destroy = decoder_destroy_trigger_update,
 },
 {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3bb353e3c90c7e1402a2b3e24df737ca4b4dfd04

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3bb353e3c90c7e1402a2b3e24df737ca4b4dfd04
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list