Commit 8d6c2121 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Return VLC_ENOMEM when malloc fails.

parent f2d4eeec
......@@ -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 )
{
msg_Err( p_filter, "out of memory" );
return VLC_EGENERIC;
return VLC_ENOMEM;
}
swscale_fast_memcpy = vlc_memcpy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment