Merge pull request #8616 from ivandrofly/matroska

Matroska
This commit is contained in:
Nikolaj Olsson 2024-10-18 20:38:24 +02:00 committed by GitHub
commit 30ba6afdba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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