Commit a396b96c authored by Rémi Duraffort's avatar Rémi Duraffort

Remove uneeded warining (and often impossible to send)

parent 17e8ab51
/***************************************************************************** /*****************************************************************************
* jack.c: JACK audio input module * jack.c: JACK audio input module
***************************************************************************** *****************************************************************************
* Copyright (C) 2007 the VideoLAN team * Copyright (C) 2007-2008 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques * Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux * Copyright (C) 2007 Savoir-faire Linux
* *
...@@ -170,7 +170,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -170,7 +170,7 @@ static int Open( vlc_object_t *p_this )
} }
/* find some specifics ports if user entered a regexp */ /* find some specifics ports if user entered a regexp */
if( p_sys->psz_ports) if( p_sys->psz_ports )
{ {
Port_finder( p_demux ); Port_finder( p_demux );
if( p_sys->i_channels == 0 ) if( p_sys->i_channels == 0 )
......
...@@ -874,10 +874,7 @@ VCDOpen ( vlc_object_t *p_this ) ...@@ -874,10 +874,7 @@ VCDOpen ( vlc_object_t *p_this )
p_vcdplayer = malloc( sizeof(vcdplayer_t) ); p_vcdplayer = malloc( sizeof(vcdplayer_t) );
if( p_vcdplayer == NULL ) if( p_vcdplayer == NULL )
{
LOG_ERR ("out of memory" );
return VLC_ENOMEM; return VLC_ENOMEM;
}
p_vcdplayer->i_debug = config_GetInt( p_this, MODULE_STRING "-debug" ); p_vcdplayer->i_debug = config_GetInt( p_this, MODULE_STRING "-debug" );
p_access->p_sys = (access_sys_t *) p_vcdplayer; p_access->p_sys = (access_sys_t *) p_vcdplayer;
...@@ -1109,9 +1106,8 @@ static int VCDControl( access_t *p_access, int i_query, va_list args ) ...@@ -1109,9 +1106,8 @@ static int VCDControl( access_t *p_access, int i_query, va_list args )
dbg_print( INPUT_DBG_EVENT, "GET TITLE: i_titles %d", dbg_print( INPUT_DBG_EVENT, "GET TITLE: i_titles %d",
p_vcdplayer->i_titles ); p_vcdplayer->i_titles );
if( psz_mrl == NULL ) { if( psz_mrl )
msg_Warn( p_access, "out of memory" ); {
} else {
snprintf(psz_mrl, psz_mrl_max, "%s%s", snprintf(psz_mrl, psz_mrl_max, "%s%s",
VCD_MRL_PREFIX, p_vcdplayer->psz_source); VCD_MRL_PREFIX, p_vcdplayer->psz_source);
VCDMetaInfo( p_access, psz_mrl ); VCDMetaInfo( p_access, psz_mrl );
......
...@@ -99,10 +99,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -99,10 +99,7 @@ static int Open( vlc_object_t *p_this )
p_sys->p_thread = p_sys->p_thread =
vlc_object_create( p_access, sizeof( rtmp_control_thread_t ) ); vlc_object_create( p_access, sizeof( rtmp_control_thread_t ) );
if( !p_sys->p_thread ) if( !p_sys->p_thread )
{
msg_Err( p_access, "out of memory" );
return VLC_ENOMEM; return VLC_ENOMEM;
}
vlc_object_attach( p_sys->p_thread, p_access ); vlc_object_attach( p_sys->p_thread, p_access );
/* Parse URI - remove spaces */ /* Parse URI - remove spaces */
......
...@@ -716,10 +716,7 @@ static void ParseKateComments( decoder_t *p_dec ) ...@@ -716,10 +716,7 @@ static void ParseKateComments( decoder_t *p_dec )
{ {
psz_comment = strdup( p_dec->p_sys->kc.user_comments[i] ); psz_comment = strdup( p_dec->p_sys->kc.user_comments[i] );
if( !psz_comment ) if( !psz_comment )
{
msg_Warn( p_dec, "out of memory" );
break; break;
}
psz_name = psz_comment; psz_name = psz_comment;
psz_value = strchr( psz_comment, '=' ); psz_value = strchr( psz_comment, '=' );
if( psz_value ) if( psz_value )
......
...@@ -520,10 +520,7 @@ static void ParseTheoraComments( decoder_t *p_dec ) ...@@ -520,10 +520,7 @@ static void ParseTheoraComments( decoder_t *p_dec )
{ {
psz_comment = strdup( p_dec->p_sys->tc.user_comments[i] ); psz_comment = strdup( p_dec->p_sys->tc.user_comments[i] );
if( !psz_comment ) if( !psz_comment )
{
msg_Warn( p_dec, "out of memory" );
break; break;
}
psz_name = psz_comment; psz_name = psz_comment;
psz_value = strchr( psz_comment, '=' ); psz_value = strchr( psz_comment, '=' );
if( psz_value ) if( psz_value )
......
...@@ -1910,10 +1910,7 @@ static int MP4_ReadBox_cmov( stream_t *p_stream, MP4_Box_t *p_box ) ...@@ -1910,10 +1910,7 @@ static int MP4_ReadBox_cmov( stream_t *p_stream, MP4_Box_t *p_box )
#endif #endif
if( !( p_box->data.p_cmov = malloc( sizeof( MP4_Box_data_cmov_t ) ) ) ) if( !( p_box->data.p_cmov = malloc( sizeof( MP4_Box_data_cmov_t ) ) ) )
{
msg_Err( p_stream, "out of memory" );
return 0; return 0;
}
memset( p_box->data.p_cmov, 0, sizeof( MP4_Box_data_cmov_t ) ); memset( p_box->data.p_cmov, 0, sizeof( MP4_Box_data_cmov_t ) );
if( !p_box->p_father || if( !p_box->p_father ||
......
...@@ -69,10 +69,7 @@ int OpenAudio ( vlc_object_t * p_this ) ...@@ -69,10 +69,7 @@ int OpenAudio ( vlc_object_t * p_this )
aout_instance_t * p_aout = (aout_instance_t*) p_this; aout_instance_t * p_aout = (aout_instance_t*) p_this;
p_aout->output.p_sys = (aout_sys_t*) malloc( sizeof( aout_sys_t ) ); p_aout->output.p_sys = (aout_sys_t*) malloc( sizeof( aout_sys_t ) );
if( p_aout->output.p_sys == NULL ) if( p_aout->output.p_sys == NULL )
{
msg_Err( p_aout, "out of memory" );
return -1; return -1;
}
aout_sys_t * p_sys = p_aout->output.p_sys; aout_sys_t * p_sys = p_aout->output.p_sys;
aout_VolumeSoftInit( p_aout ); aout_VolumeSoftInit( p_aout );
......
...@@ -68,10 +68,7 @@ int OpenIntf ( vlc_object_t *p_this ) ...@@ -68,10 +68,7 @@ int OpenIntf ( vlc_object_t *p_this )
/* Allocate instance and initialize some members */ /* Allocate instance and initialize some members */
p_intf->p_sys = (intf_sys_t*) malloc( sizeof( intf_sys_t ) ); p_intf->p_sys = (intf_sys_t*) malloc( sizeof( intf_sys_t ) );
if( !p_intf->p_sys ) if( !p_intf->p_sys )
{
msg_Err( p_intf, "out of memory" );
return VLC_EGENERIC; return VLC_EGENERIC;
}
p_intf->pf_run = Run; p_intf->pf_run = Run;
......
...@@ -1228,10 +1228,7 @@ int OpenVideo ( vlc_object_t *p_this ) ...@@ -1228,10 +1228,7 @@ int OpenVideo ( vlc_object_t *p_this )
/* Allocate structure */ /* Allocate structure */
p_vout->p_sys = (vout_sys_t*) malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = (vout_sys_t*) malloc( sizeof( vout_sys_t ) );
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
{ return 1;
msg_Err( p_vout, "out of memory" );
return( 1 );
}
p_vout->p_sys->i_width = p_vout->render.i_width; p_vout->p_sys->i_width = p_vout->render.i_width;
p_vout->p_sys->i_height = p_vout->render.i_height; p_vout->p_sys->i_height = p_vout->render.i_height;
p_vout->p_sys->source_chroma = p_vout->render.i_chroma; p_vout->p_sys->source_chroma = p_vout->render.i_chroma;
......
...@@ -110,10 +110,7 @@ int OpenVideoGL ( vlc_object_t * p_this ) ...@@ -110,10 +110,7 @@ int OpenVideoGL ( vlc_object_t * p_this )
p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
{
msg_Err( p_vout, "out of memory" );
return( 1 ); return( 1 );
}
memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) ); memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
......
...@@ -49,10 +49,7 @@ int OpenVideoGL ( vlc_object_t * p_this ) ...@@ -49,10 +49,7 @@ int OpenVideoGL ( vlc_object_t * p_this )
p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
{
msg_Err( p_vout, "out of memory" );
return( 1 ); return( 1 );
}
memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) ); memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
......
...@@ -86,10 +86,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -86,10 +86,7 @@ static int Open( vlc_object_t *p_this )
/* Allocate instance and initialize some members */ /* Allocate instance and initialize some members */
p_intf->p_sys = malloc( sizeof( intf_sys_t ) ); p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL ) if( p_intf->p_sys == NULL )
{
msg_Err( p_intf, "out of memory" );
return VLC_ENOMEM; return VLC_ENOMEM;
}
#ifdef NEED_GTK2_MAIN #ifdef NEED_GTK2_MAIN
msg_Dbg( p_intf, "Using gui-helper" ); msg_Dbg( p_intf, "Using gui-helper" );
......
...@@ -79,10 +79,7 @@ int OpenAudio( vlc_object_t *p_this ) ...@@ -79,10 +79,7 @@ int OpenAudio( vlc_object_t *p_this )
/* allocate structure */ /* allocate structure */
p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) ); p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) );
if( p_aout->output.p_sys == NULL ) if( p_aout->output.p_sys == NULL )
{
msg_Err( p_aout, "out of memory" );
return -1; return -1;
}
/* open audio device */ /* open audio device */
if( ( i_ret = snd_pcm_open_preferred( &p_aout->output.p_sys->p_pcm_handle, if( ( i_ret = snd_pcm_open_preferred( &p_aout->output.p_sys->p_pcm_handle,
......
...@@ -144,10 +144,7 @@ int OpenVideo ( vlc_object_t *p_this ) ...@@ -144,10 +144,7 @@ int OpenVideo ( vlc_object_t *p_this )
/* allocate structure */ /* allocate structure */
p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
{
msg_Err( p_vout, "out of memory" );
return( 1 ); return( 1 );
}
memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) ); memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
...@@ -309,10 +306,7 @@ static int QNXManage( vout_thread_t *p_vout ) ...@@ -309,10 +306,7 @@ static int QNXManage( vout_thread_t *p_vout )
/* allocate buffer for event */ /* allocate buffer for event */
i_buflen = sizeof( PhEvent_t ) * 4; i_buflen = sizeof( PhEvent_t ) * 4;
if( ( p_event = malloc( i_buflen ) ) == NULL ) if( ( p_event = malloc( i_buflen ) ) == NULL )
{
msg_Err( p_vout, "out of memory" );
return( 1 ); return( 1 );
}
/* event loop */ /* event loop */
do do
...@@ -324,10 +318,7 @@ static int QNXManage( vout_thread_t *p_vout ) ...@@ -324,10 +318,7 @@ static int QNXManage( vout_thread_t *p_vout )
{ {
i_buflen = PhGetMsgSize( p_event ); i_buflen = PhGetMsgSize( p_event );
if( ( p_event = realloc( p_event, i_buflen ) ) == NULL ) if( ( p_event = realloc( p_event, i_buflen ) ) == NULL )
{
msg_Err( p_vout, "out of memory" );
return( 1 ); return( 1 );
}
} }
else if( i_ev == Ph_EVENT_MSG ) else if( i_ev == Ph_EVENT_MSG )
{ {
......
...@@ -114,10 +114,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -114,10 +114,7 @@ static int Open( vlc_object_t *p_this )
// Allocate instance and initialize some members // Allocate instance and initialize some members
p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) ); p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL ) if( p_intf->p_sys == NULL )
{ return VLC_ENOMEM;
msg_Err( p_intf, "out of memory" );
return VLC_EGENERIC;
}
// Suscribe to messages bank // Suscribe to messages bank
p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
......
...@@ -201,7 +201,6 @@ static int Create( vlc_object_t *p_this ) ...@@ -201,7 +201,6 @@ static int Create( vlc_object_t *p_this )
sizeof(vout_thread_t *) ); sizeof(vout_thread_t *) );
if( p_vout->p_sys->pp_vout == NULL ) if( p_vout->p_sys->pp_vout == NULL )
{ {
msg_Err( p_vout, "out of memory" );
free( p_vout->p_sys ); free( p_vout->p_sys );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
......
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