client API: add events for video and audio reconfig

This commit is contained in:
wm4
2014-02-17 02:52:26 +01:00
parent b3b59b9a2d
commit 5fcf4b46f7
7 changed files with 34 additions and 1 deletions

View File

@@ -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.