]> git.sesse.net Git - vlc/blobdiff - modules/video_output/mga.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / mga.c
index fc8f88daf1145fc6d1daacec3265f16bc4f54038..a9f53d9cdcc2fb0a97cf789c200fafb1a4db1f5a 100644 (file)
@@ -137,10 +137,7 @@ static int Create( 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 );
-    }
 
     p_vout->p_sys->i_fd = open( "/dev/mga_vid", O_RDWR );
     if( p_vout->p_sys->i_fd == -1 )