diff options
| -rw-r--r-- | engines/sword1/animation.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index afe9a13bd1..3cc756545a 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -165,7 +165,8 @@ bool MoviePlayer::load(uint32 id) {  				for (uint32 segCnt = 0; segCnt < numSegs; segCnt++) {  					oggSource->seek( header[SwordEngine::_systemVars.language * 2 + 0 + segCnt * 14]);  					uint32 segSize = header[SwordEngine::_systemVars.language * 2 + 1 + segCnt * 14]; -					Audio::AudioStream *apStream = Audio::makeVorbisStream(oggSource, segSize); +					Common::MemoryReadStream *stream = oggSource->readStream(segSize); +					Audio::AudioStream *apStream = Audio::makeVorbisStream(streamm true);  					if (!apStream)  						error("Can't create Vorbis Stream from file %s", sndName);  					sStream->appendStream(apStream); @@ -174,7 +175,7 @@ bool MoviePlayer::load(uint32 id) {  				_bgSoundStream = sStream;  			} else  				warning("Sound file \"%s\" not found", sndName); -			oggSource->decRef(); +			delete oggSource;  #endif  			initOverlays(id);  		} | 
