mirror of https://github.com/mpv-player/mpv
11 lines
197 B
C
11 lines
197 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
static inline void check_error(int status)
|
||
|
{
|
||
|
if (status < 0) {
|
||
|
printf("mpv API error: %s\n", mpv_error_string(status));
|
||
|
exit(1);
|
||
|
}
|
||
|
}
|