Browse Source

Remove useless error messages when allocation of structures failed.

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
pull/2/head
Jean-Paul Saman 19 years ago
parent
commit
85de379230
  1. 2
      modules/mux/mpeg/ts.c

2
modules/mux/mpeg/ts.c

@ -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;
}
}

Loading…
Cancel
Save