Commit 85de3792 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove useless error messages when allocation of structures failed.

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 225300b5
......@@ -1025,7 +1025,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
p_stream->lang = malloc(p_stream->i_langs*3);
if( !p_stream->lang )
{
msg_Err( p_mux, "cannot add new stream, out of memory" );
p_stream->i_langs = 0;
free( p_stream );
return VLC_ENOMEM;
......@@ -2255,7 +2254,6 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c )
p_sys->dvbpmt = malloc( p_sys->i_num_pmt * sizeof(dvbpsi_pmt_t) );
if( !p_sys->dvbpmt )
{
msg_Err( p_mux, "cannot generate a new pmt, out of memory" );
return;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment