[vlc-devel] "fatal error locking mutex" trying to run libvlc example

basos g noxelia at gmail.com
Mon Nov 10 10:57:36 CET 2008


Hello

>> Alsos it says
>>
>>>> LibVLC fatal error locking mutex in thread 2685341600 at misc/objects.c:194: 22
>>>>  Error message: Invalid argument
>>
>> so vlc didn't like some argument.. Please provide the code you are
>> trying to execute.
>
> The code is a verbatim copy of
> http://wiki.videolan.org/LibVLC_Tutorial, except I changed
> --module-path to be --plugin-path.  The line in misc/objects.h (part
> of VLC) that dies is a part of __vlc_custom_create and is simply:
> vlc_mutex_lock( &structure_lock );
>
> where structure_lock is a static global object that is supposed to be
> initialized earlier in the code:
>    if( p_this == NULL )
>    {
>        //...
>        vlc_mutex_init( &structure_lock );
>    }
>
>> Also in this (http://wiki.videolan.org/WxVLCBackend) page you can find
>> (with a kindof tricky way) another vlc and wxwidgets sample code. You
>> will need wxWidgets 2.8.8 libraries to succesfully compile. It is not
>> perfect and i'm trying to debug some issues but it initializes OK..
>>
>
> Thanks for the link. From what I can tell, it seems like you are not
> supplying a plugin-path.  Is this correct?  When I comment out the
> plugin-path and --ignore-config in my code, I don't get the crash but
> instead (again from the libvlc_new call):

Yes i'm not suplying cause im on a linux platform and libraries are
installed into system path so they are found by default..
Also i'm working on vlc tagged 0.9.5.  Maybe this is an OSX port issue ??

Please provide a backtrace. It might be handy.

And .... patience.



More information about the vlc-devel mailing list