mirror of https://github.com/odrling/Aegisub
Fix loading subtitles extradata from matroska files
This commit is contained in:
parent
158288b66d
commit
e4368d59e4
|
@ -237,10 +237,10 @@ void MatroskaWrapper::GetSubtitles(agi::fs::path const& filename, AssFile *targe
|
||||||
parser.AddLine(cur);
|
parser.AddLine(cur);
|
||||||
}
|
}
|
||||||
// Load default if it's SRT
|
// Load default if it's SRT
|
||||||
else {
|
else
|
||||||
target->LoadDefault(false, OPT_GET("Subtitle Format/SRT/Default Style Catalog")->GetString());
|
target->LoadDefault(false, OPT_GET("Subtitle Format/SRT/Default Style Catalog")->GetString());
|
||||||
parser.AddLine("[Events]");
|
|
||||||
}
|
parser.AddLine("[Events]");
|
||||||
|
|
||||||
// Read timecode scale
|
// Read timecode scale
|
||||||
auto segInfo = mkv_GetFileInfo(file);
|
auto segInfo = mkv_GetFileInfo(file);
|
||||||
|
|
Loading…
Reference in New Issue