fixed #261 Fix a bug of function SoundPlayer::PlaySoundFromMem().

This commit is contained in:
natural-law 2010-12-14 18:03:31 +08:00
parent b8b5c2e8cd
commit 9af3d2874d
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ void SoundPlayer::PlaySoundFromMem(UInt8* pData, Int32 nSize, const char* FileNa
}
else
{
TUString::StrGBToUnicode(m_fileName, (const Char*)(FileName));
std::string strTemp = FileName;
std::string strFileName = strTemp.substr(strTemp.rfind('/') + 1);
TUString::StrGBToUnicode(m_fileName, (const Char*)(strFileName.c_str()));
}
m_pMediaFile->SetName(m_fileName);