free( val2.psz_string );
}
- if( !p_sys->psz_destination || *p_sys->psz_destination == '\0' )
+ if( p_sys->psz_destination == NULL )
{
if( !b_rtsp )
{
free( p_sys );
return VLC_EGENERIC;
}
- p_sys->psz_destination = NULL;
}
else if( p_sys->i_port <= 0 )
{
free( p_sys );
return VLC_EGENERIC;
}
- else if( !p_sys->psz_destination || *p_sys->psz_destination == '\0' )
+ else if( p_sys->psz_destination == NULL )
{
msg_Err( p_stream, "RTP needs a destination when muxing" );
free( p_sys );
#endif
free( p_sys->psz_sdp_file );
}
- if( p_sys->psz_destination )
- free( p_sys->psz_destination );
+ free( p_sys->psz_destination );
free( p_sys );
}
id->p_input = NULL;
id->psz_rtpmap = NULL;
id->psz_fmtp = NULL;
- id->psz_destination = p_sys->psz_destination ? strdup( p_sys->psz_destination ) : NULL;
id->i_port = i_port;
id->p_rtsp_url = NULL;
{
free( id->psz_fmtp );
}
- if( id->psz_destination )
- free( id->psz_destination );
sout_AccessOutDelete( id->p_access );
}
else if( id->p_input )