X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bindings%2Fpython%2Fvlc_module.c;h=b8a6348d0e3752138328fabc62983fa3d826d310;hb=4b5229c80508c84dbb28b834c5955e1177d9f779;hp=c82e6a070435168de2f046843b8bfbbd4b4c4e14;hpb=937e3f2f6b56c287e9acecfc77d65841300325ca;p=vlc diff --git a/bindings/python/vlc_module.c b/bindings/python/vlc_module.c index c82e6a0704..b8a6348d0e 100644 --- a/bindings/python/vlc_module.c +++ b/bindings/python/vlc_module.c @@ -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 + * Authors: Olivier Aubert * * 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 /************************************************************************** * 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; */