]> git.sesse.net Git - vlc/blobdiff - modules/video_output/directfb.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / directfb.c
index 512f2da6f6322f17624cac29fc281c1b0cbcb749..3b82eaf901657b0a31a5fde35d125451d9503491 100644 (file)
@@ -89,10 +89,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = p_sys = malloc( sizeof( vout_sys_t ) );
     if( !p_sys )
-    {
-        msg_Err( p_vout, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_sys->p_directfb = NULL;
     p_sys->p_primary = NULL;