]> git.sesse.net Git - vlc/blobdiff - modules/access/v4l2/v4l2.c
Cleaning (don't a message when the system runs out of memory) and fix a potential...
[vlc] / modules / access / v4l2 / v4l2.c
index f985e502b68eeaa20e88a50b7154631a67997c11..ebfe3e2efc18d7398302e602c8e11aec0fcc67d8 100644 (file)
@@ -1717,10 +1717,7 @@ static int InitMmap( demux_t *p_demux, int i_fd )
 
     p_sys->p_buffers = calloc( req.count, sizeof( *p_sys->p_buffers ) );
     if( !p_sys->p_buffers )
-    {
-        msg_Err( p_demux, "Out of memory" );
         goto open_failed;
-    }
 
     for( p_sys->i_nbuffers = 0; p_sys->i_nbuffers < req.count; ++p_sys->i_nbuffers )
     {