[vlc-devel] commit: Revert "python bindings: workaround for the #2257 / #2266 VLC bug ( linux only ATM)" (Olivier Aubert )

git version control git at videolan.org
Tue Feb 17 13:53:37 CET 2009


vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Feb 17 13:53:01 2009 +0100| [e4d9dab6f8d5d1648f4503de1ec19de767b0d605] | committer: Olivier Aubert 

Revert "python bindings: workaround for the #2257 / #2266 VLC bug (linux only ATM)"

Not needed anymore since we are back at linking modules with libvlccode.

This reverts commit 937e3f2f6b56c287e9acecfc77d65841300325ca.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4d9dab6f8d5d1648f4503de1ec19de767b0d605
---

 bindings/python/vlc_module.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/bindings/python/vlc_module.c b/bindings/python/vlc_module.c
index c82e6a0..7a90a4b 100644
--- a/bindings/python/vlc_module.c
+++ b/bindings/python/vlc_module.c
@@ -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; */




More information about the vlc-devel mailing list