Commit f205eb52 authored by Ludovic Fauvet's avatar Ludovic Fauvet

mpg123: use VLC_ENOMEM

parent a5e2641b
...@@ -224,7 +224,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -224,7 +224,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Allocate the memory needed to store the module's structure */ /* Allocate the memory needed to store the module's structure */
p_sys = p_dec->p_sys = malloc( sizeof(decoder_sys_t) ); p_sys = p_dec->p_sys = malloc( sizeof(decoder_sys_t) );
if( p_sys == NULL ) if( p_sys == NULL )
return VLC_EGENERIC; return VLC_ENOMEM;
/* Create our mpg123 handle */ /* Create our mpg123 handle */
if( ( p_sys->p_handle = mpg123_new( NULL, NULL ) ) == NULL ) if( ( p_sys->p_handle = mpg123_new( NULL, NULL ) ) == NULL )
......
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