summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-06 09:23:13 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-06 09:23:13 +0000
commit1d49c6b90bc8f6a0e5e7ff0a2e7aeae3e3043a6d (patch)
treee47150e0a0bff8b386b4fa678c64c7e7d4352370 /src/lib
parent3396023a9bc0ed55261d07da9c7b5c341e979a57 (diff)
Use _ftelli64 rather than ftell on windows.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/file_group.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index 807695451..9d042554c 100644
--- 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: