MOHAWK: Adjust MystAreaVideo::playAreaVideo for the refactored VideoManager

The refactoring in 7e6c8be7db2449c1f793b6fb01af5613282e7f27
changed the behavior of VideoManager::playMovie to start stopped
movies.
The refactoring in 9665efa39a4df000eb695329a9b81c1657f4dc10
changed the behavior of MystAreaVideo::playAreaVideo to set the position
and looping flag for already playing movies.
This commit hopefuly reverts to the previous behavior for videos
already loaded in VideoManager.
This commit is contained in:
Bastien Bouclet 2016-02-07 13:09:20 +01:00
parent eb47dcf2c9
commit 01bfd37919

View File

@ -225,7 +225,7 @@ VideoHandle MystAreaVideo::playMovie() {
VideoHandle handle = _vm->_video->findVideoHandle(_videoFile);
// If the video is not running, play it
if (!handle || handle->endOfVideo()) {
if (!handle) {
handle = _vm->_video->playMovie(_videoFile);
if (!handle)
error("Failed to open '%s'", _videoFile.c_str());