summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-10-21 12:34:33 +0200
committerwm4 <wm4@mplayer2.org>2011-12-23 16:24:00 +0100
commit03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2 (patch)
tree62291c78ec101ce9bb24d558516cbc85c51a2336
parent08e02fefad4176dc7fa44043f9f82e66b0993cf1 (diff)
downloadmpv-03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2.tar.bz2
mpv-03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2.tar.xz
core: uninit video output when audio file is played
Playing a video and then an audio file only left the VO window on screen.
-rw-r--r--mplayer.c5
1 files changed, 4 insertions, 1 deletions
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)) {