summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-24 15:34:28 +0200
committerwm4 <wm4@nowhere>2014-10-24 15:34:28 +0200
commitf4ad398b28c603ffc51613642a5c35a5ab936351 (patch)
tree0d93cc55ab6bd4774929467daad51a66dae41a9f /player/video.c
parentdb86eaad3d1db3dbc631ae7dfa7a7f4b12f10ee8 (diff)
downloadmpv-f4ad398b28c603ffc51613642a5c35a5ab936351.tar.bz2
mpv-f4ad398b28c603ffc51613642a5c35a5ab936351.tar.xz
video: send MPV_EVENT_VIDEO_RECONFIG on uninit
This event basically means "something about video changed", and uninit is certainly an important change.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index 62d0f486b7..db33406d63 100644
--- a/player/video.c
+++ b/player/video.c
@@ -248,6 +248,7 @@ void uninit_video_chain(struct MPContext *mpctx)
mpctx->sync_audio_to_video = false;
reselect_demux_streams(mpctx);
}
+ mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
}
int reinit_video_chain(struct MPContext *mpctx)