]> git.sesse.net Git - vlc/commitdiff
* modules/stream_out/standard.c: fixed segfault on close.
authorGildas Bazin <gbazin@videolan.org>
Wed, 13 Aug 2003 21:15:42 +0000 (21:15 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 13 Aug 2003 21:15:42 +0000 (21:15 +0000)
modules/stream_out/standard.c

index 722fe32c63016d70bb7e27c57d3fffd6d3c0c962..fd73fa9160517fc335a2b037dd841c7c63622e95 100644 (file)
@@ -2,7 +2,7 @@
  * standard.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: standard.c,v 1.10 2003/08/13 19:38:28 gbazin Exp $
+ * $Id: standard.c,v 1.11 2003/08/13 21:15:42 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -92,6 +92,7 @@ static int Open( vlc_object_t *p_this )
     if(psz_ipv == NULL) psz_ipv = "4";
     if(psz_v6_scope == NULL) psz_v6_scope = DEFAULT_IPV6_SCOPE;
     p_sys->p_sap = NULL;
+    p_sys->p_slp = NULL;
 
     msg_Dbg( p_this, "creating `%s/%s://%s'",
              psz_access, psz_mux, psz_url );
@@ -138,7 +139,6 @@ static int Open( vlc_object_t *p_this )
     if( p_slp_cfg && ( strstr( psz_access, "udp" ) ||
                        strstr( psz_access ,  "rtp" ) ) )
     {
-        p_sys->p_slp = NULL ;
         msg_Info( p_this, "SLP Enabled");
         if( sout_SLPReg( p_sout, psz_url, 
             p_slp_cfg->psz_value ? p_slp_cfg->psz_value : psz_url) )