[vlc-commits] [Git][videolan/vlc][master] sout: don't log a NULL psz_name
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Aug 30 11:31:39 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d143d265 by Johannes Kauffmann at 2022-08-30T11:19:46+00:00
sout: don't log a NULL psz_name
When sout_StreamDelete is called from sout_StreamNew, p_stream->psz_name
is set to NULL, so don't pass it to msg_Dbg.
- - - - -
1 changed file:
- src/stream_output/stream_output.c
Changes:
=====================================
src/stream_output/stream_output.c
=====================================
@@ -755,8 +755,10 @@ int sout_StreamControlVa(sout_stream_t *s, int i_query, va_list args)
static void sout_StreamDelete( sout_stream_t *p_stream )
{
struct sout_stream_private *priv = sout_stream_priv(p_stream);
+ char *psz_name = p_stream->psz_name;
- msg_Dbg( p_stream, "destroying chain... (name=%s)", p_stream->psz_name );
+ msg_Dbg( p_stream, "destroying chain... (name=%s)", psz_name ? psz_name
+ : "(null)" );
if (priv->module != NULL)
module_unneed(p_stream, priv->module);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d143d2654a4ba56fd73919532bae1cc6e265baf1
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d143d2654a4ba56fd73919532bae1cc6e265baf1
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