Fix: theme videos are not longer optional

This commit is contained in:
lukeIam committed 2015-08-31 19:23:57 +02:00
1 parent 15e28c8a8f
commit 1cdf2fa659
4 files changed
+24 -9

No files matched your search

+8 -4
View File
@@ -318,11 +318,15 @@ namespace VocaluxeLib.Menu
private bool _DrawVideo()
{
CBase.Video.GetFrame(_VideoStream, _VideoStream.VideoTime);
if (_VideoStream.Texture != null)
if (_VideoStream != null)
{
CBase.Drawing.DrawTexture(_VideoStream.Texture, Rect, EAspect.Crop);
return true;
CBase.Video.GetFrame(_VideoStream, _VideoStream.VideoTime);
if (_VideoStream.Texture != null)
{
CBase.Drawing.DrawTexture(_VideoStream.Texture, Rect, EAspect.Crop);
return true;
}
return false;
}
return false;
}