MPV_EVENT_SHUTDOWN constant
int
const MPV_EVENT_SHUTDOWN
Happens when the player quits. The player enters a state where it tries to disconnect all clients. Most requests to the player will fail, and the client should react to this and quit with mpv_destroy() as soon as possible.
Implementation
static const int MPV_EVENT_SHUTDOWN = 1;