mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
MOHAWK: Add a sanity check to waitUntilMovieEnds()
svn-id: r55309
This commit is contained in:
parent
58c9e219b6
commit
da1669c666
@ -106,6 +106,9 @@ void VideoManager::playMovieCentered(const Common::String &filename, bool clearS
|
||||
}
|
||||
|
||||
void VideoManager::waitUntilMovieEnds(VideoHandle videoHandle) {
|
||||
if (videoHandle == NULL_VID_HANDLE)
|
||||
return;
|
||||
|
||||
bool continuePlaying = true;
|
||||
|
||||
while (!_videoStreams[videoHandle].endOfVideo() && !_vm->shouldQuit() && continuePlaying) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user