[vlc-commits] [Git][videolan/vlc][master] sout: sdi: fix uninitialized variable

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 16 14:31:29 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
cf149bc3 by Alaric Senat at 2026-04-16T14:08:17+00:00
sout: sdi: fix uninitialized variable

Forgotten from 86099e03629fc9ef470761413ae9a7d5219d49c8.

Just displaying "decoder" instead of the media type seems reasonable as
the codec fourcc is written right after.

- - - - -


1 changed file:

- modules/stream_out/sdi/SDIStream.cpp


Changes:

=====================================
modules/stream_out/sdi/SDIStream.cpp
=====================================
@@ -251,7 +251,6 @@ void AbstractDecodedStream::deinit()
 
 bool AbstractDecodedStream::init(const es_format_t *p_fmt)
 {
-    const char *category;
     if(p_fmt->i_cat != VIDEO_ES && p_fmt->i_cat != AUDIO_ES)
         return false;
 
@@ -274,7 +273,7 @@ bool AbstractDecodedStream::init(const es_format_t *p_fmt)
 
     if(!p_decoder->p_module)
     {
-        msg_Err(p_stream, "cannot find %s for %4.4s", category, (char *)&p_fmt->i_codec);
+        msg_Err(p_stream, "cannot find decoder for %4.4s", (char *)&p_fmt->i_codec);
         ReleaseDecoder();
         return false;
     }



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

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




More information about the vlc-commits mailing list