]> git.sesse.net Git - vlc/blobdiff - modules/codec/tarkin.c
Fix live detection on win32
[vlc] / modules / codec / tarkin.c
index 3436fa7312fa622972956cc04605e82c448ee943..a408ba9cc7e5666571a0f11b0078a2e15bbfd862 100644 (file)
@@ -28,7 +28,8 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_codec.h>
 #include <vlc_vout.h>
 #include <ogg/ogg.h>
@@ -76,7 +77,7 @@ static void tarkin_CopyPicture( decoder_t *, picture_t *, uint8_t *, int );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("Tarkin decoder module") );
+    set_description( N_("Tarkin decoder module") );
     set_capability( "decoder", 100 );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_VCODEC );
@@ -100,10 +101,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     /* Allocate the memory needed to store the decoder's structure */
     if( ( p_dec->p_sys = p_sys =
           (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
-    {
-        msg_Err( p_dec, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
 
     /* Set output properties */
     p_dec->fmt_out.i_cat = VIDEO_ES;