lua: support MPV_END_FILE_REASON_REDIRECT

And also add the missing "unknown" entry to the manpage.
This commit is contained in:
wm4
2015-06-11 21:41:16 +02:00
parent e53cb0890e
commit 0d2456ae5f
2 changed files with 11 additions and 0 deletions

View File

@@ -520,6 +520,7 @@ static int script_wait_event(lua_State *L)
case MPV_END_FILE_REASON_STOP: reason = "stop"; break;
case MPV_END_FILE_REASON_QUIT: reason = "quit"; break;
case MPV_END_FILE_REASON_ERROR: reason = "error"; break;
case MPV_END_FILE_REASON_REDIRECT: reason = "redirect"; break;
default:
reason = "unknown";
}