]> git.sesse.net Git - vlc/blobdiff - modules/video_output/directfb.c
svg module: fix memleak.
[vlc] / modules / video_output / directfb.c
index b5cbeac16d6e92e62477cc18deb6f885ef753ce3..17876afe5fb9ff5a01742094e8cae83eabaf8bb0 100644 (file)
@@ -31,7 +31,8 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_vout.h>
 #include <directfb.h>
 
@@ -68,7 +69,7 @@ vlc_module_begin();
     set_shortname( "DirectFB" );
     set_category( CAT_VIDEO );
     set_subcategory( SUBCAT_VIDEO_VOUT );
-    set_description( _("DirectFB video output http://www.directfb.org/") );
+    set_description( N_("DirectFB video output http://www.directfb.org/") );
     set_capability( "video output", 60 );
     add_shortcut( "directfb" );
     set_callbacks( Create, Destroy );
@@ -88,10 +89,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = p_sys = malloc( sizeof( vout_sys_t ) );
     if( !p_sys )
-    {
-        msg_Err( p_vout, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_sys->p_directfb = NULL;
     p_sys->p_primary = NULL;