/*****************************************************************************
* standard.c: standard stream output module
*****************************************************************************
- * Copyright (C) 2003-2004 VideoLAN
+ * Copyright (C) 2003-2004 the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
var_Get( p_stream, SOUT_CFG_PREFIX "name", &val );
if( *val.psz_string )
- {
- p_session->psz_name = strdup( val.psz_string );
- }
+ p_session->psz_name = val.psz_string;
else
{
p_session->psz_name = strdup( psz_url );
+ free( val.psz_string );
}
- free( val.psz_string );
var_Get( p_stream, SOUT_CFG_PREFIX "group", &val );
if( *val.psz_string )
- {
- p_session->psz_group = strdup( val.psz_string );
- }
- free( val.psz_string );
+ p_session->psz_group = val.psz_string;
+ else
+ free( val.psz_string );
/* Now, parse the URL to extract host and port */
vlc_UrlParse( &url, psz_url , 0);