sout_stream_sys_t *p_sys;
p_stream->p_sys = p_sys = malloc( sizeof( sout_stream_sys_t ) );
+ if( p_sys == NULL )
+ return VLC_EGENERIC;
+
p_sys->p_out = sout_StreamNew( p_stream->p_sout, p_stream->psz_next );
if( p_sys->p_out == NULL )
{
msg_Dbg( p_stream, "creating new output" );
id = malloc( sizeof( sout_stream_id_t ) );
+ if( id == NULL )
+ return NULL;
es_format_Copy( &id->fmt, p_fmt );
id->b_used = VLC_TRUE;
id->id = sout_StreamIdAdd( p_sys->p_out, &id->fmt );
return sout_StreamIdSend( p_sys->p_out, id->id, p_buffer );
}
-