Merge pull request #392 from Vocaluxe/PreviewDisableFix
Fix: Config.Video.VideoPreview is ignored (fixes #391)
This commit is contained in:
3 files changed
+9
-4
No files matched your search
@@ -511,7 +511,9 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
}
|
}
|
||||||
_TextBG.Draw();
|
_TextBG.Draw();
|
||||||
|
|
||||||
CTextureRef vidtex = CBase.BackgroundMusic.IsPlayingPreview() ? CBase.BackgroundMusic.GetVideoTexture() : null;
|
CTextureRef vidtex = null;
|
||||||
|
if (CBase.Config.GetVideoPreview() == EOffOn.TR_CONFIG_ON)
|
||||||
|
vidtex = (CBase.BackgroundMusic.IsPlayingPreview() ? CBase.BackgroundMusic.GetVideoTexture() : null);
|
||||||
|
|
||||||
if (vidtex != null)
|
if (vidtex != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -485,7 +485,9 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
|
|
||||||
_TextBG.Draw();
|
_TextBG.Draw();
|
||||||
|
|
||||||
CTextureRef vidtex = CBase.BackgroundMusic.IsPlayingPreview() ? CBase.BackgroundMusic.GetVideoTexture() : null;
|
CTextureRef vidtex = null;
|
||||||
|
if (CBase.Config.GetVideoPreview() == EOffOn.TR_CONFIG_ON)
|
||||||
|
vidtex = (CBase.BackgroundMusic.IsPlayingPreview() ? CBase.BackgroundMusic.GetVideoTexture() : null);
|
||||||
|
|
||||||
if (vidtex != null)
|
if (vidtex != null)
|
||||||
{
|
{
|
||||||
@@ -608,4 +610,4 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,6 +110,7 @@ namespace VocaluxeLib.Utils.Player
|
|||||||
|
|
||||||
if (_Video != null || !SongHasVideo)
|
if (_Video != null || !SongHasVideo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
string videoFilePath = Path.Combine(_Song.Folder, _Song.VideoFileName);
|
string videoFilePath = Path.Combine(_Song.Folder, _Song.VideoFileName);
|
||||||
_Video = CBase.Video.Load(videoFilePath);
|
_Video = CBase.Video.Load(videoFilePath);
|
||||||
if (_Video == null)
|
if (_Video == null)
|
||||||
@@ -175,4 +176,4 @@ namespace VocaluxeLib.Utils.Player
|
|||||||
_CloseVideo();
|
_CloseVideo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user