]> git.sesse.net Git - vlc/blobdiff - modules/packetizer/mpeg4video.c
Ehm, this is 0.9.0-test2, not 0.8.6i *coughcough*
[vlc] / modules / packetizer / mpeg4video.c
index 37c55bcf11e05b41b978410dd517ef404e1138c8..449ec36d08337c5988627a3b8cc44d62198ac0e1 100644 (file)
@@ -31,7 +31,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_sout.h>
 #include <vlc_codec.h>
@@ -160,10 +160,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Allocate the memory needed to store the decoder's structure */
     if( ( p_dec->p_sys = p_sys = malloc( sizeof(decoder_sys_t) ) ) == NULL )
-    {
-        msg_Err( p_dec, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
     memset( p_sys, 0, sizeof(decoder_sys_t) );
 
     /* Misc init */