aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaveTBlake <oak99sky@yahoo.co.uk>2015-12-30 17:31:45 +0000
committerDaveTBlake <oak99sky@yahoo.co.uk>2015-12-30 17:31:45 +0000
commit7b0a52c6f65aeb9d0ac96e8e7d207feb775d086a (patch)
tree2a7060fa0c232924be1a74d75a78c1d6cd9f26aa
parent77d035a2188d26cbb5b303d7da52fea5aeb4545d (diff)
Ensure FileExists is called with a file name, rather than a URL. Options on the end of the string causes file not to be found in cache when present.
-rw-r--r--xbmc/filesystem/File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/File.cpp b/xbmc/filesystem/File.cpp
index 06796065c2..006562b176 100644
--- a/xbmc/filesystem/File.cpp
+++ b/xbmc/filesystem/File.cpp
@@ -226,7 +226,7 @@ bool CFile::Open(const CURL& file, const unsigned int flags)
url2.SetOptions("");
if (url2.IsProtocol("zip"))
url2.SetOptions("");
- if (!g_directoryCache.FileExists(url2.Get(), bPathInCache) )
+ if (!g_directoryCache.FileExists(url2.GetFileName(), bPathInCache) )
{
if (bPathInCache)
return false;