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:
parent
08e02fefad
commit
03ba61c3bf
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user