#include <vlc/vlc.h>
#include <vlc_sout.h>
-
#include <vlc_network.h>
#include "vlc_url.h"
psz_mux = *val.psz_string ? val.psz_string : NULL;
if( !*val.psz_string ) free( val.psz_string );
-
var_Get( p_stream, SOUT_CFG_PREFIX "dst", &val );
psz_url = *val.psz_string ? val.psz_string : NULL;
if( !*val.psz_string ) free( val.psz_string );
p_sys = p_stream->p_sys = malloc( sizeof( sout_stream_sys_t) );
+ if( !p_sys ) return VLC_ENOMEM;
p_stream->p_sys->p_session = NULL;
msg_Dbg( p_this, "creating `%s/%s://%s'", psz_access, psz_mux, psz_url );
/* create a new sout input */
p_input = malloc( sizeof( sout_input_t ) );
+ if( !p_input )
+ {
+ msg_Err( p_mux, "out of memory" );
+ return NULL;
+ }
p_input->p_sout = p_mux->p_sout;
p_input->p_fmt = p_fmt;
p_input->p_fifo = block_FifoNew( p_mux->p_sout );