Skip to content

Commit

Permalink
mpg123: use VLC_ENOMEM
Browse files Browse the repository at this point in the history
  • Loading branch information
etix committed Jan 6, 2015
1 parent a5e2641 commit f205eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/codec/mpg123.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Allocate the memory needed to store the module's structure */
p_sys = p_dec->p_sys = malloc( sizeof(decoder_sys_t) );
if( p_sys == NULL )
return VLC_EGENERIC;
return VLC_ENOMEM;

/* Create our mpg123 handle */
if( ( p_sys->p_handle = mpg123_new( NULL, NULL ) ) == NULL )
Expand Down

0 comments on commit f205eb5

Please sign in to comment.