From 7147e6d6498796f767b2152a508be9f81a25a422 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Tue, 6 Mar 2012 19:50:01 +0100 Subject: [PATCH] Pause background video when playing from videos from backgroundmusic --- Vocaluxe/Menu/CBackground.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vocaluxe/Menu/CBackground.cs b/Vocaluxe/Menu/CBackground.cs index 5e5c3add..8bd602da 100644 --- a/Vocaluxe/Menu/CBackground.cs +++ b/Vocaluxe/Menu/CBackground.cs @@ -138,9 +138,15 @@ namespace Vocaluxe.Menu { bool ok = false; if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON && CBackgroundMusic.VideoToBackgroundIsEnabled() && CBackgroundMusic.IsPlaying() && CBackgroundMusic.HasVideo()) + { + Pause(); ok = DrawBackgroundMusicVideo(); + } else if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON) + { + Resume(); ok = DrawVideo(); + } if (_Theme.TextureName != String.Empty && (_Theme.Type == EBackgroundTypes.Texture ||