diff options
author | wm4 <wm4@nowhere> | 2014-10-28 16:19:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-28 20:30:12 +0100 |
commit | 65db3291b327797ac7d09ba2ea36db9ba5383f18 (patch) | |
tree | d43c2bb41969472e18c71e7b7275e5cbd2206814 /player/client.c | |
parent | 3cde02fe2292bbc6e213b6a619c2bafa21412276 (diff) | |
download | mpv-65db3291b327797ac7d09ba2ea36db9ba5383f18.tar.bz2 mpv-65db3291b327797ac7d09ba2ea36db9ba5383f18.tar.xz |
client API: better error reporting
Give somewhat more information on playback failure.
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c index 8376756a9a..2308555a1e 100644 --- a/player/client.c +++ b/player/client.c @@ -1479,6 +1479,11 @@ static const char *const err_table[] = { [-MPV_ERROR_PROPERTY_UNAVAILABLE] = "property unavailable", [-MPV_ERROR_PROPERTY_ERROR] = "error accessing property", [-MPV_ERROR_COMMAND] = "error running command", + [-MPV_ERROR_LOADING_FAILED] = "loading failed", + [-MPV_ERROR_AO_INIT_FAILED] = "audio output initialization failed", + [-MPV_ERROR_VO_INIT_FAILED] = "audio output initialization failed", + [-MPV_ERROR_NOTHING_TO_PLAY] = "the file has no audio or video data", + [-MPV_ERROR_UNKNOWN_FORMAT] = "unrecognized file format", }; const char *mpv_error_string(int error) |