diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-13 21:22:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:22 +0100 |
| commit | ea454d8c6eabe0dfa3e82b36e5813012cf93395c (patch) | |
| tree | 8c307f78eeee4a09a2a825d7788f7a29fb9a642f /src/cpl.cc | |
| parent | 197b0139dc0765ef5cd67acf6770ef9037718235 (diff) | |
Throw an exception on making a DCP with no reels.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -198,6 +198,10 @@ CPL::write_xml (boost::filesystem::path file, Standard standard, shared_ptr<cons auto reel_list = root->add_child ("ReelList"); + if (_reels.empty()) { + throw NoReelsError (); + } + bool first = true; for (auto i: _reels) { auto asset_list = i->write_to_cpl (reel_list, standard); |
