From 03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Oct 2011 12:34:33 +0200 Subject: [PATCH] core: uninit video output when audio file is played Playing a video and then an audio file only left the VO window on screen. --- mplayer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index d79d45f057..073c48a347 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2701,8 +2701,11 @@ int reinit_video_chain(struct MPContext *mpctx) { struct MPOpts *opts = &mpctx->opts; sh_video_t * const sh_video = mpctx->sh_video; - if (!sh_video) + if (!sh_video){ + uninit_player(mpctx, INITIALIZED_VO); return 0; + } + double ar = -1.0; //================== Init VIDEO (codec & libvo) ========================== if (!opts->fixed_vo || !(mpctx->initialized_flags & INITIALIZED_VO)) {