mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix visible error being thrown when playing a no-video beatmap
This commit is contained in:
@ -74,7 +74,9 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
try
|
||||
{
|
||||
return new VideoSprite(textureStore.GetStream(getPathForFile(Metadata.VideoFile)));
|
||||
var stream = textureStore.GetStream(getPathForFile(Metadata.VideoFile));
|
||||
|
||||
return stream == null ? null : new VideoSprite(stream);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user