Use full/empty conditions rather than just a single condition for the server and...
[dcpomatic.git] / 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: