1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 18:12:22 +00:00

core: uninit video output when audio file is played

Playing a video and then an audio file only left the VO window on screen.
This commit is contained in:
wm4 2011-10-21 12:34:33 +02:00
parent 08e02fefad
commit 03ba61c3bf

View File

@ -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)) {