[vlc-commits] [Git][videolan/vlc][master] decoder: fix vctx check

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Nov 5 15:50:19 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
25978d34 by Thomas Guillem at 2025-11-05T15:31:53+00:00
decoder: fix vctx check

If vctx == NULL (no hw-dec) and created_vout == 0 (not format change),
do not request a new vout (via input_resource_RequestVout()).

This was not causing any restart as input_resource_RequestVout() would
re-use the same one, but it allows to do less check and less lock/unlock
for each frames that is pushed.

- - - - -


1 changed file:

- src/input/decoder.c


Changes:

=====================================
src/input/decoder.c
=====================================
@@ -597,7 +597,7 @@ static int ModuleThread_UpdateVideoFormat( decoder_t *p_dec, vlc_video_context *
     if (created_vout == 0)
     {
         // video context didn't change
-        if (vctx != NULL && p_owner->vctx == vctx)
+        if (p_owner->vctx == vctx)
             return 0;
     }
     assert(p_owner->p_vout);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/25978d34afaaff147f337180c74a72faeff4918b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/25978d34afaaff147f337180c74a72faeff4918b
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