[vlc-devel] commit: Remove silly "out of memory" messages. (Jean-Paul Saman )

git version control git at videolan.org
Fri May 9 14:57:45 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri May  9 14:51:46 2008 +0200| [3f47d4769d757a7ec2007f1ff9ff16648456e71a]

Remove silly "out of memory" messages.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f47d4769d757a7ec2007f1ff9ff16648456e71a
---

 modules/gui/fbosd.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/modules/gui/fbosd.c b/modules/gui/fbosd.c
index 54985c4..2b4d5c9 100644
--- a/modules/gui/fbosd.c
+++ b/modules/gui/fbosd.c
@@ -311,17 +311,13 @@ static int Create( vlc_object_t *p_this )
     /* Allocate instance and initialize some members */
     p_intf->p_sys = p_sys = malloc( sizeof( intf_sys_t ) );
     if( !p_intf->p_sys )
-    {
-        msg_Err( p_intf, "out of memory" );
         return VLC_ENOMEM;
-    };
     memset( p_sys, 0, sizeof(intf_sys_t) );
 
     p_sys->p_style = malloc( sizeof( text_style_t ) );
     if( !p_sys->p_style )
     {
         free( p_intf->p_sys );
-        msg_Err( p_intf, "out of memory" );
         return VLC_ENOMEM;
     }
     vlc_memcpy( p_sys->p_style, &default_text_style, sizeof( text_style_t ) );
@@ -333,7 +329,6 @@ static int Create( vlc_object_t *p_this )
     {
         free( p_intf->p_sys->p_style );
         free( p_intf->p_sys );
-        msg_Err( p_intf, "out of memory" );
         return VLC_ENOMEM;
     }
 




More information about the vlc-devel mailing list