mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00:00
Dispose of video resource later
We need the Stream to stay open here because `StreamFileAbstraction` uses it later in the block.
This commit is contained in:
parent
bb9cbd3e66
commit
f2f97602f2
@ -50,12 +50,8 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
continue;
|
||||
}
|
||||
|
||||
StreamFileAbstraction fileAbstraction;
|
||||
|
||||
using (Stream data = context.WorkingBeatmap.GetStream(storagePath))
|
||||
{
|
||||
fileAbstraction = new StreamFileAbstraction(filename, data);
|
||||
}
|
||||
using Stream data = context.WorkingBeatmap.GetStream(storagePath);
|
||||
var fileAbstraction = new StreamFileAbstraction(filename, data);
|
||||
|
||||
// We use TagLib here for platform invariance; BASS cannot detect audio presence on Linux.
|
||||
TagLib.File tagFile = null;
|
||||
|
Loading…
Reference in New Issue
Block a user