]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/direct3d.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / msw / direct3d.c
index 85b0754c6b02bb0fc0fa0c0ebe8e4f0c1359db88..19c8efc133c4a03bfd5c4f000f910279db567d56 100644 (file)
@@ -153,10 +153,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 ) );
 
     if( VLC_SUCCESS != Direct3DVoutCreate( p_vout ) )