mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09: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:
@ -50,12 +50,8 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
StreamFileAbstraction fileAbstraction;
|
using Stream data = context.WorkingBeatmap.GetStream(storagePath);
|
||||||
|
var fileAbstraction = new StreamFileAbstraction(filename, data);
|
||||||
using (Stream data = context.WorkingBeatmap.GetStream(storagePath))
|
|
||||||
{
|
|
||||||
fileAbstraction = new StreamFileAbstraction(filename, data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// We use TagLib here for platform invariance; BASS cannot detect audio presence on Linux.
|
// We use TagLib here for platform invariance; BASS cannot detect audio presence on Linux.
|
||||||
TagLib.File tagFile = null;
|
TagLib.File tagFile = null;
|
||||||
|
Reference in New Issue
Block a user