]> git.sesse.net Git - vlc/commitdiff
mpg123: use VLC_ENOMEM
authorLudovic Fauvet <etix@videolan.org>
Tue, 6 Jan 2015 09:48:14 +0000 (10:48 +0100)
committerLudovic Fauvet <etix@videolan.org>
Tue, 6 Jan 2015 09:48:14 +0000 (10:48 +0100)
modules/codec/mpg123.c

index eb9b04f730989b444dbaea6cfb78646633d110e4..3a5d07aee82d0d8903f399c20ce89c619c75387a 100644 (file)
@@ -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 )