X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ffile_group.cc;h=9d042554c5b8c0649385456895d0358d813a7b0c;hb=02f028d271677b3b3669b5cdfda1597108a34b80;hp=80769545173308db30dbee8a91acc50dbecc272e;hpb=edafebffa42b9bc57408cc9540a7c15e4e4cab63;p=dcpomatic.git 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: