diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-04 21:25:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-04 21:25:44 +0000 |
| commit | c8636a2ce85eb3073ac5a32a89f9d77031366dc2 (patch) | |
| tree | 532c35eba064c1f8f9294aba1b56142b51c6b0fc /src/lib | |
| parent | 5f66a692647fc901f7dca709ad08c65010bd84e7 (diff) | |
Stop old versions of DCP-o-matic loading new state files. Fix missing content type setup in dcpomatic_create.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 00beb870f..1b724b27e 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -397,6 +397,9 @@ Film::read_metadata () f.read_file (file ("metadata.xml")); _state_version = f.number_child<int> ("Version"); + if (_state_version > current_state_version) { + throw StringError (_("This film was created with a newer version of DCP-o-matic, and it cannot be loaded into this version. Sorry!")); + } _name = f.string_child ("Name"); _use_dci_name = f.bool_child ("UseDCIName"); |
