Implement stopMovie() for Riven. Fixes some dome related videos.

svn-id: r48082
This commit is contained in:
Matthew Hoops 2010-02-17 23:05:51 +00:00
parent f0d8084cd5
commit 3452f5ea2d

View File

@ -291,11 +291,15 @@ void VideoManager::playMovieBlocking(uint16 id) {
}
void VideoManager::stopMovie(uint16 id) {
debug(2, "Stopping movie %d", id);
for (uint16 i = 0; i < _mlstRecords.size(); i++)
if (_mlstRecords[i].code == id) {
warning("STUB: Stop tMOV %d", _mlstRecords[i].movieID);
return;
}
if (_mlstRecords[i].code == id)
for (uint16 j = 0; j < _videoStreams.size(); j++)
if (_mlstRecords[i].movieID == _videoStreams[j].id) {
delete _videoStreams[i].video;
memset(&_videoStreams[i].video, 0, sizeof(VideoEntry));
return;
}
}
void VideoManager::enableMovie(uint16 id) {