]> git.sesse.net Git - vlc/blobdiff - modules/codec/telx.c
Don't print a message when an memory error occure and check some malloc return values.
[vlc] / modules / codec / telx.c
index 455f4b9636ad47b14dd2c5a8fefb01c8830007a4..a19b378a60355db1efdd546dd7f74eeec66519a5 100644 (file)
@@ -30,6 +30,7 @@
 #endif
 
 #include <vlc/vlc.h>
+#include <vlc_plugin.h>
 #include <assert.h>
 #include <stdint.h>
 
@@ -182,10 +183,7 @@ static int Open( vlc_object_t *p_this )
     p_dec->pf_decode_sub = Decode;
     p_sys = p_dec->p_sys = malloc( sizeof(decoder_sys_t) );
     if( p_sys == NULL )
-    {
-        msg_Err( p_dec, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     memset( p_sys, 0, sizeof(decoder_sys_t) );