1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08: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:
Naxesss 2021-10-12 00:40:39 +02:00
parent bb9cbd3e66
commit f2f97602f2

View File

@ -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;