Commit 2433ab08 authored by Gildas Bazin's avatar Gildas Bazin

* modules/stream_out/standard.c: fixed segfault on close.
parent 26db09c0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* standard.c * standard.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -92,6 +92,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -92,6 +92,7 @@ static int Open( vlc_object_t *p_this )
if(psz_ipv == NULL) psz_ipv = "4"; if(psz_ipv == NULL) psz_ipv = "4";
if(psz_v6_scope == NULL) psz_v6_scope = DEFAULT_IPV6_SCOPE; if(psz_v6_scope == NULL) psz_v6_scope = DEFAULT_IPV6_SCOPE;
p_sys->p_sap = NULL; p_sys->p_sap = NULL;
p_sys->p_slp = NULL;
msg_Dbg( p_this, "creating `%s/%s://%s'", msg_Dbg( p_this, "creating `%s/%s://%s'",
psz_access, psz_mux, psz_url ); psz_access, psz_mux, psz_url );
...@@ -138,7 +139,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -138,7 +139,6 @@ static int Open( vlc_object_t *p_this )
if( p_slp_cfg && ( strstr( psz_access, "udp" ) || if( p_slp_cfg && ( strstr( psz_access, "udp" ) ||
strstr( psz_access , "rtp" ) ) ) strstr( psz_access , "rtp" ) ) )
{ {
p_sys->p_slp = NULL ;
msg_Info( p_this, "SLP Enabled"); msg_Info( p_this, "SLP Enabled");
if( sout_SLPReg( p_sout, psz_url, if( sout_SLPReg( p_sout, psz_url,
p_slp_cfg->psz_value ? p_slp_cfg->psz_value : psz_url) ) p_slp_cfg->psz_value ? p_slp_cfg->psz_value : psz_url) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment