Commit ba6ca830 authored by Jean-Paul Saman's avatar Jean-Paul Saman
Browse files

Remove silly out of memory message in an out of memory situation and fixed...

Remove silly out of memory message in an out of memory situation and fixed indentation on bool declarations.
parent b529170c
......@@ -129,10 +129,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Allocate the memory needed to store the decoder's structure */
if( ( p_dec->p_sys = p_sys =
(decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
{
msg_Err( p_dec, "out of memory" );
return VLC_EGENERIC;
}
return VLC_ENOMEM;
/* Initialize the thread properties */
memset( p_sys, 0, sizeof(decoder_sys_t) );
......
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