1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 17:02:55 +08:00

Merge pull request #7856 from peppy/fix-video-error

Fix visible error being thrown when playing a no-video beatmap
This commit is contained in:
Dan Balasescu 2020-02-16 16:44:18 +09:00 committed by GitHub
commit b6fd519f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{