2013-02-19, 11:53
When listening to a shoutcast stream on the internet and change to another shoutcast stream, the current shoutcastfile function will be called twice:
Current implementation of CFile.cpp
void CFile::Close()
{
try
{
if (m_pFile)
m_pFile->Close(); <-- First call to close
SAFE_DELETE(m_pBuffer);
SAFE_DELETE(m_pFile); <-- Second call to close, which raise an error
}
XBMCCOMMONS_HANDLE_UNCHECKED
catch(...)
{
CLog::Log(LOGERROR, "%s - Unhandled exception", __FUNCTION__);
}
return;
}
Reg.
Fred
Current implementation of CFile.cpp
void CFile::Close()
{
try
{
if (m_pFile)
m_pFile->Close(); <-- First call to close
SAFE_DELETE(m_pBuffer);
SAFE_DELETE(m_pFile); <-- Second call to close, which raise an error
}
XBMCCOMMONS_HANDLE_UNCHECKED
catch(...)
{
CLog::Log(LOGERROR, "%s - Unhandled exception", __FUNCTION__);
}
return;
}
Reg.
Fred