[vlc-devel] [PATCH] fix stream output Dbg segfault

Francois Cartegnie fcvlcdev at free.fr
Fri Apr 16 16:39:20 CEST 2010


---
 src/stream_output/stream_output.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 103d690..a21918c 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -791,7 +791,8 @@ static void mrl_Clean( mrl_t *p_mrl )
 /* Destroy a "stream_out" module */
 static void sout_StreamDelete( sout_stream_t *p_stream )
 {
-    msg_Dbg( p_stream, "destroying chain... (name=%s)", p_stream->psz_name );
+    msg_Dbg( p_stream, "destroying chain... (name=%s)",
+             p_stream->psz_name ? p_stream->psz_name : "(null)" );
 
     if( p_stream->p_module ) module_unneed( p_stream, p_stream->p_module );
 
@@ -846,7 +847,8 @@ static sout_stream_t *sout_StreamNew( sout_instance_t *p_sout, char *psz_name,
     p_stream->p_cfg    = p_cfg;
     p_stream->p_next   = p_next;
 
-    msg_Dbg( p_sout, "stream=`%s'", p_stream->psz_name );
+    msg_Dbg( p_sout, "stream=`%s'",
+             p_stream->psz_name ? p_stream->psz_name : "(null)" );
 
     vlc_object_attach( p_stream, p_sout );
 
-- 
1.6.4.4




More information about the vlc-devel mailing list