1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 19:50:38 +08:00

Recreate beatmap video on each consumption (#6098)

Recreate beatmap video on each consumption
This commit is contained in:
Dean Herbert
2019-09-14 00:23:38 +09:00
committed by GitHub
Unverified
+1 -4
View File
@@ -44,7 +44,6 @@ namespace osu.Game.Beatmaps
track = new RecyclableLazy<Track>(() => GetTrack() ?? GetVirtualTrack());
background = new RecyclableLazy<Texture>(GetBackground, BackgroundStillValid);
video = new RecyclableLazy<VideoSprite>(GetVideo);
waveform = new RecyclableLazy<Waveform>(GetWaveform);
storyboard = new RecyclableLazy<Storyboard>(GetStoryboard);
skin = new RecyclableLazy<ISkin>(GetSkin);
@@ -188,11 +187,9 @@ namespace osu.Game.Beatmaps
protected abstract Texture GetBackground();
private readonly RecyclableLazy<Texture> background;
public bool VideoLoaded => video.IsResultAvailable;
public VideoSprite Video => video.Value;
public VideoSprite Video => GetVideo();
protected abstract VideoSprite GetVideo();
private readonly RecyclableLazy<VideoSprite> video;
public bool TrackLoaded => track.IsResultAvailable;
public Track Track => track.Value;