VLC 4.0.0-dev
Loading...
Searching...
No Matches
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.
 
void libvlc_clearerr (void)
 Clears the LibVLC error status for the current thread.
 
const char * libvlc_printerr (const char *fmt,...)
 Sets the LibVLC error status and message for the current thread.
 

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