[vlc-devel] [PATCH] Add few missing error messages to libvlc.

Alexey Sokolov alexey at alexeysokolov.co.cc
Mon Jul 25 03:27:41 CEST 2011


On 25.07.2011 04:18, Jean-Baptiste Kempf wrote:
> On Sun, Jul 24, 2011 at 08:42:37PM +0700, Alexey Sokolov wrote :
>>       if( !p_mlib )
>> +    {
>> +        libvlc_printerr( "Not enough memory" );
>>           return NULL;
>> +    }
> How can we call libvlc_printerr and thus vasprintf if you got no memory?
>
The same way as every other libvlc_printerr( "Not enough memory" ); 
happens (do grep in src/control/):
if vasprintf failed, error is set to 'static const char oom[] = "Out of 
memory";' which is defined in error.c

-- 
Best regards,
Alexey "DarthGandalf" Sokolov




More information about the vlc-devel mailing list