Skip to content
This repository
Browse code

Merge pull request #3171 from stupid-boy/CSimpleDoubleCache

[FIX] CSimpleDoubleCache: do not change type of underlying cache
  • Loading branch information...
commit 4e13c225ebd0fe20df89c899094a1593c8a11ff1 2 parents 421a4e8 + ba5ccef
ulion authored September 07, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/filesystem/CacheStrategy.cpp
2  xbmc/filesystem/CacheStrategy.cpp
@@ -334,7 +334,7 @@ void CSimpleDoubleCache::Reset(int64_t iSourcePosition, bool clearAnyway)
334 334
   }
335 335
   if (!m_pCacheOld)
336 336
   {
337  
-    CSimpleFileCache *pCacheNew = new CSimpleFileCache();
  337
+    CCacheStrategy *pCacheNew = m_pCache->CreateNew();
338 338
     if (pCacheNew->Open() != CACHE_RC_OK)
339 339
     {
340 340
       delete pCacheNew;

0 notes on commit 4e13c22

Please sign in to comment.
Something went wrong with that request. Please try again.