projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d37262c
)
fixed: file based file cache never reused buffer on seeks if starting position was...
author
elupus
<elupus@xbmc.org>
Mon, 28 Mar 2011 21:52:55 +0000
(23:52 +0200)
committer
elupus
<elupus@xbmc.org>
Mon, 28 Mar 2011 22:24:04 +0000
(
00:24
+0200)
xbmc/filesystem/CacheStrategy.cpp
patch
|
blob
|
history
diff --git
a/xbmc/filesystem/CacheStrategy.cpp
b/xbmc/filesystem/CacheStrategy.cpp
index
f1c2f95
..
17f9779
100644
(file)
--- a/
xbmc/filesystem/CacheStrategy.cpp
+++ b/
xbmc/filesystem/CacheStrategy.cpp
@@
-226,13
+226,13
@@
int64_t CSimpleFileCache::Seek(int64_t iFilePosition)
LARGE_INTEGER pos;
pos.QuadPart = iTarget;
- if(!SetFilePointerEx(m_hCacheFileRead, pos,
&pos
, FILE_BEGIN))
+ if(!SetFilePointerEx(m_hCacheFileRead, pos,
NULL
, FILE_BEGIN))
return CACHE_RC_ERROR;
m_nReadPosition = iTarget;
m_space.Set();
- return
pos.QuadPart
;
+ return
iFilePosition
;
}
void CSimpleFileCache::Reset(int64_t iSourcePosition)