TEENAGENT: Added missing lock in music player, replaced protected with private.

This commit is contained in:
Vladimir Menshakov 2011-10-27 02:56:32 +04:00
parent f4a938d0f8
commit 5b89ef4366
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ bool MusicPlayer::load(int id) {
stream->read(header, 4);
//check header?
Common::StackLock lock(_mutex);
// Load the samples
sampleCount = stream->readByte();

View File

@ -40,7 +40,7 @@ public:
void start();
void stop();
protected:
private:
int _id;
struct Row {