Merge pull request #2229 from ulion/file_double_cache
authorulion <ulion2002@gmail.com>
Fri, 10 May 2013 13:47:00 +0000 (06:47 -0700)
committerulion <ulion2002@gmail.com>
Fri, 10 May 2013 13:47:00 +0000 (06:47 -0700)
Fix: now mp4 file on internet url can be played by dvdplayer by double session support of cache.

1  2 
xbmc/filesystem/CurlFile.cpp

@@@ -371,9 -376,9 +382,10 @@@ void CCurlFile::CReadState::Disconnect(
  
  CCurlFile::~CCurlFile()
  {
 +  CSingleLock lock(s_hostMapLock);
    Close();
    delete m_state;
+   delete m_oldState;
    g_curlInterface.Unload();
  }