Remove code to use last mp3 handle on error.

It was copied from mpeg, where it was added for safety, and it shouldn't
be hit anyway.
This commit is contained in:
Unknown W. Brackets 2013-10-24 19:07:24 -07:00
parent badf33a872
commit 9eda1fc578

View File

@ -99,14 +99,8 @@ struct Mp3Context {
};
static std::map<u32, Mp3Context *> mp3Map;
static u32 lastMp3Handle = 0;
Mp3Context *getMp3Ctx(u32 mp3) {
if (mp3Map.find(mp3) == mp3Map.end()) {
ERROR_LOG(ME, "Bad mp3 handle %08x - using last one (%08x) instead", mp3, lastMp3Handle);
mp3 = lastMp3Handle;
}
if (mp3Map.find(mp3) == mp3Map.end())
return NULL;
return mp3Map[mp3];