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 --- player/video.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 9ca5e9e697..348954c855 100644 --- a/player/video.c +++ b/player/video.c @@ -72,6 +72,10 @@ static void reconfig_video(struct MPContext *mpctx, set_allowed_vo_formats(d_video->vfilter, mpctx->video_out); + // The event should happen _after_ filter and VO reconfig. Since we don't + // have any fine grained locking, this is just as good. + mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); + if (video_reconfig_filters(d_video, params) < 0) { // Most video filters don't work with hardware decoding, so this // might be the reason filter reconfig failed. -- cgit v1.2.3