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