mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 19:12:56 +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:
commit
b6fd519f23
@ -74,7 +74,9 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
try
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user