]> git.sesse.net Git - vlc/commitdiff
Remove uneeded warining (and often impossible to send)
authorRémi Duraffort <ivoire@videolan.org>
Tue, 14 Oct 2008 19:01:22 +0000 (21:01 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 14 Oct 2008 19:01:22 +0000 (21:01 +0200)
16 files changed:
modules/access/jack.c
modules/access/vcdx/access.c
modules/access_output/rtmp.c
modules/codec/kate.c
modules/codec/theora.c
modules/demux/mp4/libmp4.c
modules/gui/beos/AudioOutput.cpp
modules/gui/beos/Interface.cpp
modules/gui/beos/VideoOutput.cpp
modules/gui/macosx/voutgl.m
modules/gui/minimal_macosx/voutgl.m
modules/gui/pda/pda.c
modules/gui/qnx/aout.c
modules/gui/qnx/vout.c
modules/gui/wince/wince.cpp
modules/video_filter/clone.c

index d5df31df15f63c174ed69412dfc20ac14daa4b66..f8ca4243883b3038610897ef3b7f76aea2518810 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * 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 Savoir-faire Linux
  *
@@ -170,7 +170,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     /* find some specifics ports if user entered a regexp */
-    if( p_sys->psz_ports)
+    if( p_sys->psz_ports )
     {
         Port_finder( p_demux );
         if( p_sys->i_channels == 0 )
index 279c34a1fdc98beb17b1783c4cb25b6ee9685add..ffe7f188790e3e476ee9245be8dbfee6f1197aa5 100644 (file)
@@ -874,10 +874,7 @@ VCDOpen ( vlc_object_t *p_this )
     p_vcdplayer = malloc( sizeof(vcdplayer_t) );
 
     if( p_vcdplayer == NULL )
-    {
-        LOG_ERR ("out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_vcdplayer->i_debug = config_GetInt( p_this, MODULE_STRING "-debug" );
     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 )
             dbg_print( INPUT_DBG_EVENT, "GET TITLE: i_titles %d",
                        p_vcdplayer->i_titles );
 
-            if( psz_mrl == NULL ) {
-               msg_Warn( p_access, "out of memory" );
-            } else {
+            if( psz_mrl  )
+            {
                snprintf(psz_mrl, psz_mrl_max, "%s%s",
                         VCD_MRL_PREFIX, p_vcdplayer->psz_source);
                VCDMetaInfo( p_access, psz_mrl );
index 8f478f5a2c5c771ce9bf05cdce09c27e4f558499..8afbf95a12eb0920b1fd7653af9865157a2348dd 100644 (file)
@@ -99,10 +99,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_thread =
         vlc_object_create( p_access, sizeof( rtmp_control_thread_t ) );
     if( !p_sys->p_thread )
-    {
-        msg_Err( p_access, "out of memory" );
         return VLC_ENOMEM;
-    }
     vlc_object_attach( p_sys->p_thread, p_access );
 
     /* Parse URI - remove spaces */
index be89e97ddd3289fc44ad0cd16aa38c4c364000b7..2ce29bf976a738af2bb2482681516f64a9838be7 100644 (file)
@@ -716,10 +716,7 @@ static void ParseKateComments( decoder_t *p_dec )
     {
         psz_comment = strdup( p_dec->p_sys->kc.user_comments[i] );
         if( !psz_comment )
-        {
-            msg_Warn( p_dec, "out of memory" );
             break;
-        }
         psz_name = psz_comment;
         psz_value = strchr( psz_comment, '=' );
         if( psz_value )
index 88e14c0aa685f20706f6704e82fab7662f1dbdb8..b3d2e9e0ee1a61eef8f07b05c836e9cc80a01c70 100644 (file)
@@ -520,10 +520,7 @@ static void ParseTheoraComments( decoder_t *p_dec )
     {
         psz_comment = strdup( p_dec->p_sys->tc.user_comments[i] );
         if( !psz_comment )
-        {
-            msg_Warn( p_dec, "out of memory" );
             break;
-        }
         psz_name = psz_comment;
         psz_value = strchr( psz_comment, '=' );
         if( psz_value )
index 422f8f2cedaa9cdeb4ac5d3fa0d9ce17d95e4670..cebdd94c28c73c70fbc640a6e7e39a1f496363fb 100644 (file)
@@ -1910,10 +1910,7 @@ static int MP4_ReadBox_cmov( stream_t *p_stream, MP4_Box_t *p_box )
 #endif
 
     if( !( p_box->data.p_cmov = malloc( sizeof( MP4_Box_data_cmov_t ) ) ) )
-    {
-        msg_Err( p_stream, "out of memory" );
         return 0;
-    }
     memset( p_box->data.p_cmov, 0, sizeof( MP4_Box_data_cmov_t ) );
 
     if( !p_box->p_father ||
index a65c5cc00e392b9cd780ecebe89879e525b348cf..1202ef04da6c340af136ae6f0eec33dcad6655e2 100644 (file)
@@ -69,10 +69,7 @@ int OpenAudio ( vlc_object_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 ) );
     if( p_aout->output.p_sys == NULL )
-    {
-        msg_Err( p_aout, "out of memory" );
         return -1;
-    }
     aout_sys_t * p_sys = p_aout->output.p_sys;
 
     aout_VolumeSoftInit( p_aout );
index c1c5f62acdb040680d809827235bcfbbfaf34f97..72c800fd3f4f7f154567f504d30ae37b7543ce65 100644 (file)
@@ -68,10 +68,7 @@ int OpenIntf ( vlc_object_t *p_this )
     /* Allocate instance and initialize some members */
     p_intf->p_sys = (intf_sys_t*) malloc( sizeof( intf_sys_t ) );
     if( !p_intf->p_sys )
-    {
-        msg_Err( p_intf, "out of memory" );
         return VLC_EGENERIC;
-    }
  
     p_intf->pf_run = Run;
 
index 8364ea184a1458306c738c1afc8f1acd47a23e9e..e808b7d07e8923452d8945fce391fd67772266ae 100644 (file)
@@ -1228,10 +1228,7 @@ int OpenVideo ( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = (vout_sys_t*) malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
-        return( 1 );
-    }
+        return 1;
     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->source_chroma = p_vout->render.i_chroma;
index fbdadd1557fab04d04b155c51f34b0592ec7ac6f..5f5f5e724f5234e903502dc7a574eb2edf6c1de1 100644 (file)
@@ -110,10 +110,7 @@ int OpenVideoGL  ( vlc_object_t * p_this )
 
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return( 1 );
-    }
 
     memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
 
index 7713f53fa8cbb51505291953fd88c92b240452ba..c046268ef06675363e9209fe994ff8db4eed5160 100644 (file)
@@ -49,10 +49,7 @@ int OpenVideoGL  ( vlc_object_t * p_this )
 
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return( 1 );
-    }
 
     memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
 
index eede59e387ea6735a7454f7333bc0804930d04cf..e5eecb07a25762c68aa9b9eaa6a76f41d10e6aeb 100644 (file)
@@ -86,10 +86,7 @@ static int Open( vlc_object_t *p_this )
     /* Allocate instance and initialize some members */
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
-    {
-        msg_Err( p_intf, "out of memory" );
         return VLC_ENOMEM;
-    }
 
 #ifdef NEED_GTK2_MAIN
     msg_Dbg( p_intf, "Using gui-helper" );
index 77736af6184a922000abdf66d4d3147c5a7fe5cf..0dea8b81f6ea90a70e0f4e1cd693470204a0fe18 100644 (file)
@@ -79,10 +79,7 @@ int OpenAudio( vlc_object_t *p_this )
     /* allocate structure */
     p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) );
     if( p_aout->output.p_sys == NULL )
-    {
-        msg_Err( p_aout, "out of memory" );
         return -1;
-    }
 
     /* open audio device */
     if( ( i_ret = snd_pcm_open_preferred( &p_aout->output.p_sys->p_pcm_handle,
index bc34b1bfe97bdf645c08a32328d8c9402202c06c..4b30fe0ccf0968a3c865b3924f139c5bf998d990 100644 (file)
@@ -144,10 +144,7 @@ int OpenVideo ( vlc_object_t *p_this )
     /* allocate structure */
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return( 1 );
-    }
 
     memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
 
@@ -309,10 +306,7 @@ static int QNXManage( vout_thread_t *p_vout )
     /* allocate buffer for event */
     i_buflen = sizeof( PhEvent_t ) * 4;
     if( ( p_event = malloc( i_buflen ) ) == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return( 1 );
-    }
 
     /* event loop */
     do
@@ -324,10 +318,7 @@ static int QNXManage( vout_thread_t *p_vout )
         {
             i_buflen = PhGetMsgSize( p_event );
             if( ( p_event = realloc( p_event, i_buflen ) ) == NULL )
-            {
-                msg_Err( p_vout, "out of memory" );
                 return( 1 );
-            }
         }
         else if( i_ev == Ph_EVENT_MSG )
         {
index da57c3f7ab3eca165fa863ae6763809c8047f876..68869333768e70f429f49ac4a370cc25787fd74c 100644 (file)
@@ -114,10 +114,7 @@ static int Open( vlc_object_t *p_this )
     // Allocate instance and initialize some members
     p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
-    {
-        msg_Err( p_intf, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
 
     // Suscribe to messages bank
     p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
index 4653563024b22e693a08f8166fb17f9b4855e601..50b92af39435cad82c3d69037f7954a3e0149236 100644 (file)
@@ -201,7 +201,6 @@ static int Create( vlc_object_t *p_this )
                                      sizeof(vout_thread_t *) );
     if( p_vout->p_sys->pp_vout == NULL )
     {
-        msg_Err( p_vout, "out of memory" );
         free( p_vout->p_sys );
         return VLC_ENOMEM;
     }