diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/dcp_content.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index c73d0df86..cc636b0bf 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -162,6 +162,17 @@ DCPContent::read_directory (boost::filesystem::path p) read_directory (i->path()); } } + + bool have_assetmap = false; + BOOST_FOREACH (boost::filesystem::path i, paths()) { + if (i.filename() == "ASSETMAP" || i.filename() == "ASSETMAP.xml") { + have_assetmap = true; + } + } + + if (!have_assetmap) { + throw DCPError ("No ASSETMAP or ASSETMAP.xml file found: is this a DCP?"); + } } void |
