Page 1 of 1

Throws an exception after calling libvlc_errmsg() after libv

Posted: 15 Jun 2011 23:38
by olga.krupina
I am using VLC librray for VLC versions 1.1.++. The problem occurred on mac Mini and was reproduce on the different mac Minis.
Using VlC library with the native calls.
Called libvlc_errmsg after innocently calling libvlc_get_version(). And got the error message: "DRHT". Note that I cleared the errors before callling ..getVersion().
Looked at the previous versions of VLC lib that used the exceptions as a parameter and found out that the method get_version did not have exceptions as a parameter.
Removed libvlc_errmsg after ...get_version() since it caused problems-works fine.
Just out of curiosity, why is it happening?
By the way, the problem did not occur on Windows, running VLC 1.1.++.

Re: Throws an exception after calling libvlc_errmsg() after

Posted: 16 Jun 2011 08:45
by RĂ©mi Denis-Courmont
libvlc_errmsg() is undefined before libvlc_new() or after libvlc_release().

Besides libvlc_get_version(), libvlc_get_compiler() and libvlc_get_changeset() functions cannot fail.