VLC 4.0.0-dev
LibVLC error handling
Collaboration diagram for LibVLC error handling:

Functions

const char * libvlc_errmsg (void)
 A human-readable error message for the last LibVLC error in the calling thread. More...
 
void libvlc_clearerr (void)
 Clears the LibVLC error status for the current thread. More...
 
const char * libvlc_printerr (const char *fmt,...)
 Sets the LibVLC error status and message for the current thread. More...
 

Detailed Description

Function Documentation

◆ libvlc_clearerr()

void libvlc_clearerr ( void  )

Clears the LibVLC error status for the current thread.

This is optional. By default, the error status is automatically overridden when a new error occurs, and destroyed when the thread exits.

◆ libvlc_errmsg()

const char * libvlc_errmsg ( void  )

A human-readable error message for the last LibVLC error in the calling thread.

The resulting string is valid until another error occurs (at least until the next LibVLC call).

Warning
This will be NULL if there was no error.

◆ libvlc_printerr()

const char * libvlc_printerr ( const char *  fmt,
  ... 
)

Sets the LibVLC error status and message for the current thread.

Any previous error is overridden.

Parameters
fmtthe format string
...the arguments for the format string
Returns
a nul terminated string in any case