Page 1 of 1

Python Binding LibVLC enabling debuging/verbosity

Posted: 04 Jun 2014 04:32
by FredT
Hi, I'm using libVLC with python binding and It is working great but for some reason, I'm unable to activate logging to a file using the log_set_file() function or the log_set function with a callback. I'm not sure what to pass each funtion. I'm currently running the code on windows with libVLC 2.1.3 32 bits with python 2.7.x

-how to create FILE descriptor compatible with libvlc in python?

-how to create a callback function. The log_set function takea the 3 parameters. log_set(self, data, p_instance) The way I read it the function takes the lib_vlc instance twice in two parameter.
self is already a lib_vlc instance and it is asking p_instance again? I'm assuming that p_instance is the libvlc instance (self)

Anybody succeeded and can give me some hints?

Thanks

Re: Python Binding LibVLC enabling debuging/verbosity

Posted: 04 Jun 2014 05:57
by RĂ©mi Denis-Courmont
The native function takes a pointer to the LibVLC instance, a pointer to the logging callback function and an opaque data pointer for the callback to use. I don't know about the Python bindings.