[vlc-commits] [Git][videolan/vlc][3.0.x] misc/stats: ensure p_pic is non-NULL before calling decoder_QueueVideo()

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Dec 8 17:31:25 UTC 2025



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
9140355a by Sean McGovern at 2025-12-08T16:36:08+01:00
misc/stats: ensure p_pic is non-NULL before calling decoder_QueueVideo()

(cherry picked from commit f93a8c5f341a346a93b5dfe4da38873475453352)

- - - - -


1 changed file:

- modules/misc/stats.c


Changes:

=====================================
modules/misc/stats.c
=====================================
@@ -72,7 +72,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
 
 error:
     block_Release( p_block );
-    decoder_QueueVideo( p_dec, p_pic );
+    if ( p_pic )
+        decoder_QueueVideo( p_dec, p_pic );
     return VLCDEC_SUCCESS;
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9140355a0514a0af1ec7bee50bfb21254449102a

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