diff options
-rw-r--r-- | player/video.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c index de7e601645..97b88de5d2 100644 --- a/player/video.c +++ b/player/video.c @@ -220,10 +220,11 @@ void reset_video_state(struct MPContext *mpctx) void uninit_video_out(struct MPContext *mpctx) { uninit_video_chain(mpctx); - if (mpctx->video_out) + if (mpctx->video_out) { vo_destroy(mpctx->video_out); + mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); + } mpctx->video_out = NULL; - mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); } void uninit_video_chain(struct MPContext *mpctx) @@ -236,8 +237,8 @@ void uninit_video_chain(struct MPContext *mpctx) mpctx->sync_audio_to_video = false; reselect_demux_streams(mpctx); remove_deint_filter(mpctx); + mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); } - mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); } int reinit_video_chain(struct MPContext *mpctx) |