diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-23 20:15:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-23 20:15:55 +0100 |
| commit | ab108b87e1059720264432165a921ab3b259e0a6 (patch) | |
| tree | 875d233908653f8ba6625b05153aadfd91517cff | |
| parent | 1437d38a988cffa5d56d1660e6525fde0f0406cb (diff) | |
Be careful that we're checking the _current_file rather than the optional.
| -rw-r--r-- | src/lib/file_group.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index f4d50028e..5a73d66b8 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -85,8 +85,8 @@ FileGroup::ensure_open_path (size_t p) const _current_path = p; _current_file = dcp::File(_paths[_current_path], "rb"); - if (!_current_file) { throw OpenFileError (_paths[_current_path], errno, OpenFileError::READ); + if (!_current_file->get()) { } _current_size = boost::filesystem::file_size (_paths[_current_path]); } |
