diff options
author | wm4 <wm4@nowhere> | 2014-02-17 02:52:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-17 02:52:59 +0100 |
commit | 5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 (patch) | |
tree | e46f60111fa1655b6c9b394330050eaa84d2b9ab /libmpv/client.h | |
parent | b3b59b9a2d51d57656eda965d02762131b0bd5b7 (diff) | |
download | mpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.bz2 mpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.xz |
client API: add events for video and audio reconfig
Diffstat (limited to 'libmpv/client.h')
-rw-r--r-- | libmpv/client.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libmpv/client.h b/libmpv/client.h index b59a4c3249..7bc613b15e 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -622,6 +622,22 @@ typedef enum mpv_event_id { * the seconand argument as strings. */ MPV_EVENT_CLIENT_MESSAGE = 16, + /** + * Happens after video changed in some way. This can happen on resolution + * changes, pixel format changes, or video filter changes. The event is + * sent after the video filters and the VO are reconfigured. Applications + * embedding a mpv window should listen to this event in order to resize + * the window if needed. + * Note that this event can happen sporadically, and you should check + * yourself whether the video parameters really changed before doing + * something expensive. + */ + MPV_EVENT_VIDEO_RECONFIG = 17, + /** + * Similar to MPV_EVENT_VIDEO_RECONFIG. This is relatively uninteresting, + * because there is no such thing as audio output embedding. + */ + MPV_EVENT_AUDIO_RECONFIG = 18, } mpv_event_id; /** |