[vlc-commits] mpg123: use VLC_ENOMEM

Ludovic Fauvet git at videolan.org
Tue Jan 6 10:50:11 CET 2015


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Jan  6 10:48:14 2015 +0100| [f205eb5282ec5c55ebc2e42b00bbd13d2f7cee88] | committer: Ludovic Fauvet

mpg123: use VLC_ENOMEM

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f205eb5282ec5c55ebc2e42b00bbd13d2f7cee88
---

 modules/codec/mpg123.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/mpg123.c b/modules/codec/mpg123.c
index eb9b04f..3a5d07a 100644
--- a/modules/codec/mpg123.c
+++ b/modules/codec/mpg123.c
@@ -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 )



More information about the vlc-commits mailing list