mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
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:
parent
badf33a872
commit
9eda1fc578
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user