Bug File.Close calls ShoutcastFile.Close twice
#1
Bug 
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
Silverstone Grandia GD02-MT | AMD A8-3850 | Breakaway Audio Enhancer, HK AVR-365 | HKTS 30, Philips 50PFL7956H/12 21:9 3D
Reply

Logout Mark Read Team Forum Stats Members Help
File.Close calls ShoutcastFile.Close twice0