]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / msw / directx.c
index 552db7d8033e5f64e9a4ccb999a4bd31e57d8f5c..ec72dcd1342780750fd95a38feb32b32aff47530 100644 (file)
@@ -210,10 +210,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 */