[vlc-devel] LibVLC's new error handling API question

Rémi Denis-Courmont remi at remlab.net
Thu Aug 5 16:46:52 CEST 2010


Le jeudi 5 août 2010 17:32:36 Jacques Boileau, vous avez écrit :
> Hi,
> 
> I am starting to use the new LibVLC 1.1.2 API, which I find great. I will
> be using the new filter API that was added, a great plus for me. But I am
> a little confused about the new LibVLC error handling API and what error
> handling strategy to take in my application. The question this new API
> poses is that there are functions that return a 0 or -1 status others that
> don't. It seems simple enough for the function that do return a status to
> check it and retrieve the error message using libvlc_errmsg() if there was
> an error. But for those that don't, does it mean no error can arise

Yes. At least no errors can be detected synchronously.

> and a call to libvlc_errmsg() would return NULL always?

No. The error message is the last error, not the previous function's error.


-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list