From 77bd2865cc8dba8d94c4e5153c9acb93d0db712d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 26 Oct 2016 20:56:20 -0400 Subject: TITANIC: Fix hang when reaching very end of movies --- engines/titanic/support/avi_surface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/titanic/support/avi_surface.h b/engines/titanic/support/avi_surface.h index b4e6d420cb..e4599da03a 100644 --- a/engines/titanic/support/avi_surface.h +++ b/engines/titanic/support/avi_surface.h @@ -132,7 +132,9 @@ public: /** * Return true if a video is currently playing */ - virtual bool isPlaying() const { return _decoder->isPlaying(); } + virtual bool isPlaying() const { + return _decoder->isPlaying() && !_decoder->endOfVideo(); + } /** * Handle any movie events relevent for the frame -- cgit v1.2.3