Use _ftelli64 rather than ftell on windows.
authorCarl Hetherington <cth@carlh.net>
Mon, 6 Jan 2014 09:23:13 +0000 (09:23 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 6 Jan 2014 09:23:13 +0000 (09:23 +0000)
src/lib/file_group.cc

index 80769545173308db30dbee8a91acc50dbecc272e..9d042554c5b8c0649385456895d0358d813a7b0c 100644 (file)
@@ -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: