Options not working

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Options not working

Postby fred.hild » 08 Aug 2007 13:57

Hello.
Im trying to access libvlc.dll in C++. Im using GetProcAddress() which seems to work fine but when im trying to send the options with playlist_AddExt it seems like the options is ignored. The source start playing but without the options
I have used the same options in another projekt (.Net) so it should work.

this is the code for the loading of playlist_AddExt()

typedef VlcError (* FUNCPLAYLISTADDEXT) (void* , char* , char* , Mode, int, long,
char*[] ,int);
FUNCPLAYLISTADDEXT playlist_AddExt;
playlist_AddExt = (FUNCPLAYLISTADDEXT) GetProcAddress(m_hVlcDll, "playlist_AddExt");

and then i call the function

playlist_AddExt(pVobj->GetSubObject(), pPlayString, pPlayString, Append, EndOfPlaylist, -1L, m_apPlayOptions, optionsCount);

the options i'm trying to set is ":dshow-video-input=2" and optionsCount is 1

What is wrong?

thanks in advance / fred.hild

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 13 guests