]> git.sesse.net Git - vlc/blobdiff - bindings/python/vlc_module.c
Win32: use IsProcessorFeaturePresent() to detect available instructions
[vlc] / bindings / python / vlc_module.c
index c82e6a070435168de2f046843b8bfbbd4b4c4e14..b8a6348d0e3752138328fabc62983fa3d826d310 100644 (file)
@@ -1,10 +1,10 @@
 /*****************************************************************************
  * vlc_module.c: vlc python binding module
  *****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006,2007,2008,2009 the VideoLAN team
  * $Id$
  *
- * Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.fr>
+ * Authors: Olivier Aubert <olivier.aubert at liris.cnrs.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +22,6 @@
  *****************************************************************************/
 
 #include "vlcglue.h"
-#include <dlfcn.h>
 
 /**************************************************************************
  * VLC Module
@@ -48,21 +47,6 @@ initvlc( void )
 {
     PyObject* p_module;
 
-#ifdef WIN32
-    /*
-      FIXME: Win32 support is trickier than that (does not support dlopen).
-      Get code from src/modules/os.c to work on different OSes.
-    */
-    #define LIBVLCCORE "libvlccore.dll"
-#else
-    #define LIBVLCCORE "libvlccore.so"
-#endif
-    /* Workaround for the 2257/2266 VLC bug. */
-    if ( !dlopen( LIBVLCCORE, RTLD_NOW | RTLD_GLOBAL ) )
-    {
-        fprintf( stderr, "Error when loading libvlccore:\n%s\nTrying to continue anyway.\n", dlerror() );
-    }
-
     /* vlcMediaPlayer_Type.tp_new = PyType_GenericNew; */
     vlcMediaPlayer_Type.tp_alloc = PyType_GenericAlloc;
     /* vlcMedia_Type.tp_new = PyType_GenericNew; */