Custom Module will not load 1.1.7
Posted: 11 Feb 2011 23:02
Hello! I wrote a module for VLC a while back that's been running wonderfully. However I'm not trying to build the module for 1.1.7 and the module will not load. Here is some code I've been using to test, it's just a dummy module:
I'm compiling on Windows using GCC and MingW with defines "__PLUGIN__" and "__LIBVLC__" and it builds without any problems. I then copy the .dll file into my plugins directory and try executing "vlc.exe --reset-plugins-cache --list" to list the modules it could load. When linking with the 1.0.3 version and plopping it in the plugins directory, it loads fine. But if I link with 1.0.7 it won't load at all and I don't get any error messages about an invalid plugin like I used to in 1.0.3.
Comparing the export symbols, for the 1.0.3 version I get:
and for 1.1.7 I get:
Any ideas? Thanks!
Code: Select all
#include <vlc_common.h>
#include <vlc_plugin.h>
#define MODULE_STRING "stubbbbby"
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
vlc_module_begin()
set_description("Stub")
set_shortname("Stub")
set_category( CAT_ADVANCED )
add_shortcut( "stubby" )
set_capability( "text renderer", 1 ) // 0 will disable this guy so that it HAS to be called explicitly
set_callbacks( Open, Close )
vlc_module_end()
int Open ( vlc_object_t * v){
return VLC_SUCCESS;
}
void Close ( vlc_object_t * v){
// do nothing
}
Comparing the export symbols, for the 1.0.3 version I get:
Code: Select all
vlc_entry__1_0_0e
vlc_entry_copyright__1_0_0e
vlc_entry_license__1_0_0e
Code: Select all
vlc_entry__1_1_0g
vlc_entry_copyright__1_1_0g
vlc_entry_license__1_1_0g