]> git.sesse.net Git - vlc/blobdiff - modules/video_output/hd1000v.cpp
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / hd1000v.cpp
index 51f62cad4aa742677b46ad068e2e5bff6db05929..34a0213e66573b551208b92f6409faf2720ebd03 100644 (file)
@@ -97,10 +97,7 @@ static int Create( vlc_object_t *p_this )
  
     p_vout->p_sys = (struct vout_sys_t*) malloc( sizeof(struct vout_sys_t) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
 
     /* Allocate a screen for VLC vout. */
     p_vout->p_sys->p_screen = new CascadeScreen();