(EogAudio.TryOpen): don't dispose of intermediate stream.

This commit is contained in:
morkt 2015-06-20 21:29:05 +04:00
parent f47432fc09
commit a47817101e

View File

@ -39,15 +39,8 @@ namespace GameRes.Formats.Crowd
public override SoundInput TryOpen (Stream file)
{
var ogg = new StreamRegion (file, 8);
try
{
return new OggInput (ogg);
}
catch
{
ogg.Dispose();
throw;
}
return new OggInput (ogg);
// in case of exception ogg stream is left undisposed
}
public override void Write (SoundInput source, Stream output)