]> git.sesse.net Git - vlc/blobdiff - modules/video_output/hd1000v.cpp
playlist: Don't allow pl_Release(p_playlist) and pl_Yield(p_playlist).
[vlc] / modules / video_output / hd1000v.cpp
index 5c81ed94d0592ecdd0786eae03928922f7c7e75b..e5cbf29df0671c8dba2650435e6449c1f3831705 100644 (file)
@@ -31,7 +31,8 @@ extern "C" {
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_vout.h>
 #include <vlc_playlist.h>
 }
@@ -56,7 +57,7 @@ static void FreePicture( vout_thread_t *, picture_t * );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("HD1000 video output") );
+    set_description( N_("HD1000 video output") );
     set_capability( "video output", 100 );
     add_shortcut( "hd1000v" );
     set_callbacks( Create, Destroy );
@@ -96,10 +97,7 @@ static int Create( vlc_object_t *p_this )
  
     p_vout->p_sys = (struct vout_sys_t*) malloc( sizeof(struct vout_sys_t) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
 
     /* Allocate a screen for VLC vout. */
     p_vout->p_sys->p_screen = new CascadeScreen();