]> git.sesse.net Git - vlc/blobdiff - modules/video_output/aa.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / aa.c
index 00b88f202f646a4337285c908b25a6a0c573eb43..92e663c76c8310ed6b1d6d0162afeabe14706461 100644 (file)
@@ -90,10 +90,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 );
-    }
 
     /* Don't parse any options, but take $AAOPTS into account */
     aa_parseoptions( NULL, NULL, NULL, NULL );