Master obj not static in 0.9.0 i_initializations>0 assert

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
corvusvideo
Blank Cone
Blank Cone
Posts: 29
Joined: 03 Mar 2008 16:14

Master obj not static in 0.9.0 i_initializations>0 assert

Postby corvusvideo » 27 Jun 2008 14:21

In the newer nightly builds of 0.9.0, after I change to use libvlccore etc, I get the error / assert that "i_initializations > 0" is not true. I believe that this is because the main object is no longer static so I need to do something to initialize libvlc and instantiate the main object. Can anybody tell me what call I need to do to make this work? I tried __vlc_threads_init but that is not it. Any ideas? FYI I am trying to keep my C# wrapper class up to date with changes in 0.9.0 as they occur.

Thanks....

corvusvideo
Blank Cone
Blank Cone
Posts: 29
Joined: 03 Mar 2008 16:14

Re: Master obj not static in 0.9.0 i_initializations>0 assert

Postby corvusvideo » 27 Jun 2008 19:40

OK, so I think I am getting closer. It was not initialized because the init entry point changed but I was silently catching the exception so I did not know it.

So.... I have replaced

VLC_Create with the new libvlc_InternalCreate and
VLC_Init with the new libvlc_InternalInit

But when I call vlc_object_get with the handle returned from libvlc_InternalCreate I always get null

Any help gratefully accepted as I am just thrashing here.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests