From 4a87ea396203741b43e2b1e2c0f663fdcca93973 Mon Sep 17 00:00:00 2001 From: Ingo van Lil Date: Sun, 12 Jan 2014 01:34:45 +0100 Subject: [PATCH] EMI: Hide subtitle when stopping movie playback --- engines/grim/movie/bink.cpp | 5 +++++ engines/grim/movie/bink.h | 1 + 2 files changed, 6 insertions(+) diff --git a/engines/grim/movie/bink.cpp b/engines/grim/movie/bink.cpp index da1675ece1f..55da2da0333 100644 --- a/engines/grim/movie/bink.cpp +++ b/engines/grim/movie/bink.cpp @@ -52,6 +52,11 @@ bool BinkPlayer::bikCheck(Common::SeekableReadStream *stream, uint32 pos) { return (tag & 0xFFFFFF00) == MKTAG('B', 'I', 'K', 0); } +void BinkPlayer::deinit() { + g_grim->setMovieSubtitle(NULL); + MoviePlayer::deinit(); +} + void BinkPlayer::handleFrame() { MoviePlayer::handleFrame(); diff --git a/engines/grim/movie/bink.h b/engines/grim/movie/bink.h index eae0a0ef508..24cd65a1752 100644 --- a/engines/grim/movie/bink.h +++ b/engines/grim/movie/bink.h @@ -49,6 +49,7 @@ private: bool loadFile(const Common::String &filename); bool _demo; bool bikCheck(Common::SeekableReadStream *stream, uint32 pos); + virtual void deinit() override; virtual void handleFrame(); };