Return VLC_ENOMEM when malloc fails.
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 18 May 2008 11:34:49 +0000 (13:34 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Mon, 19 May 2008 08:51:10 +0000 (10:51 +0200)
modules/codec/ffmpeg/scale.c

index 3fe061e..6272419 100644 (file)
@@ -114,8 +114,7 @@ int OpenScaler( vlc_object_t *p_this )
     if( ( p_filter->p_sys = p_sys =
           (filter_sys_t *)malloc(sizeof(filter_sys_t)) ) == NULL )
     {
     if( ( p_filter->p_sys = p_sys =
           (filter_sys_t *)malloc(sizeof(filter_sys_t)) ) == NULL )
     {
-        msg_Err( p_filter, "out of memory" );
-        return VLC_EGENERIC;
+        return VLC_ENOMEM;
     }
 
     swscale_fast_memcpy = vlc_memcpy;
     }
 
     swscale_fast_memcpy = vlc_memcpy;