summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-17 02:52:26 +0100
committerwm4 <wm4@nowhere>2014-02-17 02:52:59 +0100
commit5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 (patch)
treee46f60111fa1655b6c9b394330050eaa84d2b9ab /player/video.c
parentb3b59b9a2d51d57656eda965d02762131b0bd5b7 (diff)
downloadmpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.bz2
mpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.xz
client API: add events for video and audio reconfig
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c4
1 files changed, 4 insertions, 0 deletions
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.