1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +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
commit ac6fffd834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;