# define _WIN32_WINNT 0x0501
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_sout.h>
free( val.psz_string );
p_sys = p_stream->p_sys = malloc( sizeof( sout_stream_sys_t) );
- if( !p_sys ) return VLC_ENOMEM;
+ if( !p_sys )
+ {
+ free( psz_url );
+ return VLC_ENOMEM;
+ }
p_stream->p_sys->p_session = NULL;
msg_Dbg( p_this, "creating `%s/%s://%s'", psz_access, psz_mux, psz_url );
else
{
msg_Err( p_stream, "no access _and_ no muxer (fatal error)" );
+ free( psz_url );
+ free( p_sys );
return VLC_EGENERIC;
}
}
else
{
msg_Err( p_stream, "no mux specified or found by extension" );
+ free( p_sys );
return VLC_EGENERIC;
}
}
psz_access, psz_mux, psz_url );
free( psz_access );
free( psz_mux );
+ free( psz_url );
+ free( p_sys );
return VLC_EGENERIC;
}
msg_Dbg( p_stream, "access opened" );
sout_AccessOutDelete( p_access );
free( psz_access );
free( psz_mux );
+ free( psz_url );
+ free( p_sys );
return VLC_EGENERIC;
}
msg_Dbg( p_stream, "mux opened" );
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_DGRAM,
.ai_protocol = 0,
- .ai_flags = AI_NUMERICHOST
-#ifdef AI_NUMERICSERV
- | AI_NUMERICSERV
-#endif
+ .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV
};
char *shost = var_GetNonEmptyString (p_access, "src-addr");
char *dhost = var_GetNonEmptyString (p_access, "dst-addr");