diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-21 12:34:33 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2011-12-23 16:24:00 +0100 |
commit | 03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2 (patch) | |
tree | 62291c78ec101ce9bb24d558516cbc85c51a2336 /mplayer.c | |
parent | 08e02fefad4176dc7fa44043f9f82e66b0993cf1 (diff) | |
download | mpv-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.
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)) { |