]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/glwin32.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / msw / glwin32.c
index 3258e76d6f1f5b77645e579ad079db4444a6ebd1..b4db014b22ebe3c8c10881d01560db109bb64aef 100644 (file)
@@ -96,10 +96,7 @@ static 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 VLC_ENOMEM;
-    }
     memset( p_vout->p_sys, 0, sizeof( vout_sys_t ) );
 
     /* Initialisations */