Catch exceptions for movie playback

This commit is contained in:
Eblo 2022-01-15 23:01:37 -05:00 committed by Struma
parent 86a6c93d58
commit e874f554b3

View file

@ -269,7 +269,9 @@ RB_METHOD(graphicsPlayMovie)
SafeStringValue(filename);
int volume = (volumeArg == Qnil) ? 100 : NUM2INT(volumeArg);
shState->graphics().playMovie(RSTRING_PTR(filename), volume);
// TODO: Video control inputs (e.g. skip, pause)
GUARD_EXC(shState->graphics().playMovie(RSTRING_PTR(filename), volume););
return Qnil;
}