X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffile_group.cc;h=5cfe021192ec9d3adf86150280fd849dab4fa98d;hb=1858190cff2f960f3d1f0a5cc02c69da86088f5b;hp=9c8d43204b1b830726c073de894e7b9f5c6e9e22;hpb=cb990adba9c57e5107ef2aa9716cf0a26c1df83d;p=dcpomatic.git diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index 9c8d43204..5cfe02119 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -26,6 +26,7 @@ #include "file_group.h" #include "exceptions.h" #include "cross.h" +#include using std::vector; using std::cout; @@ -82,7 +83,7 @@ FileGroup::ensure_open_path (size_t p) const /* Already open */ return; } - + if (_current_file) { fclose (_current_file); } @@ -111,9 +112,9 @@ FileGroup::seek (int64_t pos, int whence) const } #ifdef DCPOMATIC_WINDOWS full_pos += _ftelli64 (_current_file); -#else +#else full_pos += ftell (_current_file); -#endif +#endif full_pos += pos; break; case SEEK_END: