From 5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Feb 2014 02:52:26 +0100 Subject: client API: add events for video and audio reconfig --- libmpv/client.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libmpv') 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; /** -- cgit v1.2.3