forked from mia/Aegisub
Specifically catch exceptions thrown by the subtitle renderer so that we can give a slightly more useful error message.
Originally committed to SVN as r4238.
This commit is contained in:
parent
aa417cf903
commit
792c8ec66e
1 changed files with 6 additions and 1 deletions
|
@ -411,7 +411,12 @@ AegiVideoFrame VideoContext::GetFrame(int n,bool raw) {
|
|||
// Raster subtitles if available/necessary
|
||||
if (!raw && subsProvider) {
|
||||
tempFrame.CopyFrom(frame);
|
||||
subsProvider->DrawSubtitles(tempFrame,VFR_Input.GetTimeAtFrame(n,true,true)/1000.0);
|
||||
try {
|
||||
subsProvider->DrawSubtitles(tempFrame,VFR_Input.GetTimeAtFrame(n,true,true)/1000.0);
|
||||
}
|
||||
catch (...) {
|
||||
wxLogError(L"Subtitle rendering for the current frame failed.\n");
|
||||
}
|
||||
return tempFrame;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue