projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3396023
)
Use _ftelli64 rather than ftell on windows.
author
Carl Hetherington
<cth@carlh.net>
Mon, 6 Jan 2014 09:23:13 +0000
(09:23 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 6 Jan 2014 09:23:13 +0000
(09:23 +0000)
src/lib/file_group.cc
patch
|
blob
|
history
diff --git
a/src/lib/file_group.cc
b/src/lib/file_group.cc
index 80769545173308db30dbee8a91acc50dbecc272e..9d042554c5b8c0649385456895d0358d813a7b0c 100644
(file)
--- a/
src/lib/file_group.cc
+++ b/
src/lib/file_group.cc
@@
-100,7
+100,11
@@
FileGroup::seek (int64_t pos, int whence) const
for (size_t i = 0; i < _current_path; ++i) {
full_pos += boost::filesystem::file_size (_paths[i]);
}
+#ifdef DCPOMATIC_WINDOWS
+ full_pos += _ftelli64 (_current_file);
+#else
full_pos += ftell (_current_file);
+#endif
full_pos += pos;
break;
case SEEK_END: