mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
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);
|
|
}
|
|
}
|