Fix wxString::Format assertion failure when opening subtitles from Matroska

Originally committed to SVN as r6714.
This commit is contained in:
Thomas Goyne 2012-04-22 15:31:06 +00:00
parent 95344fdb7c
commit 35241bdbce

View file

@ -108,7 +108,7 @@ static void read_subtitles(agi::ProgressSink *ps, MatroskaFile *file, MkvStdIO *
blockString.BeforeFirst(',', &afterOrder).ToLong(&order); blockString.BeforeFirst(',', &afterOrder).ToLong(&order);
afterOrder.BeforeFirst(',', &afterLayer).ToLong(&layer); afterOrder.BeforeFirst(',', &afterLayer).ToLong(&layer);
subList[order] = wxString::Format("Dialogue: %d,%s,%s,%s", layer, subStart.GetASSFormated(), subEnd.GetASSFormated(), afterLayer); subList[order] = wxString::Format("Dialogue: %d,%s,%s,%s", (int)layer, subStart.GetASSFormated(), subEnd.GetASSFormated(), afterLayer);
} }
// Process SRT // Process SRT
else { else {