Skip to content
Browse files

Merge pull request #3171 from stupid-boy/CSimpleDoubleCache

[FIX] CSimpleDoubleCache: do not change type of underlying cache
  • Loading branch information...
2 parents 421a4e8 + ba5ccef commit 4e13c225ebd0fe20df89c899094a1593c8a11ff1 @ulion ulion committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/filesystem/CacheStrategy.cpp
View
2 xbmc/filesystem/CacheStrategy.cpp
@@ -334,7 +334,7 @@ void CSimpleDoubleCache::Reset(int64_t iSourcePosition, bool clearAnyway)
}
if (!m_pCacheOld)
{
- CSimpleFileCache *pCacheNew = new CSimpleFileCache();
+ CCacheStrategy *pCacheNew = m_pCache->CreateNew();
if (pCacheNew->Open() != CACHE_RC_OK)
{
delete pCacheNew;

0 comments on commit 4e13c22

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