diff --git a/src/libse/ContainerFormats/Matroska/MatroskaFile.cs b/src/libse/ContainerFormats/Matroska/MatroskaFile.cs index 40941ac9f..c040f4761 100644 --- a/src/libse/ContainerFormats/Matroska/MatroskaFile.cs +++ b/src/libse/ContainerFormats/Matroska/MatroskaFile.cs @@ -520,10 +520,10 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.Matroska } } - private string GetChapterName(Element ChapterDisplay) + private string GetChapterName(Element chapterDisplay) { Element element; - while (_stream.Position < ChapterDisplay.EndPosition && (element = ReadElement()) != null) + while (_stream.Position < chapterDisplay.EndPosition && (element = ReadElement()) != null) { if (element.Id == ElementId.ChapString) { @@ -671,11 +671,7 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.Matroska return _subtitleRip; } - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } + public void Dispose() => Dispose(true); private void Dispose(bool disposing) { @@ -686,7 +682,6 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.Matroska } } - private void ReadSegmentInfoAndTracks() { // go to segment