- shared_ptr<Content> c = content_factory (film, argv[i]);
- shared_ptr<VideoContent> vc = dynamic_pointer_cast<VideoContent> (c);
- if (vc) {
- vc->set_scale (VideoContentScale (content_ratio));
+ boost::filesystem::path const can = boost::filesystem::canonical (argv[i]);
+ list<shared_ptr<Content> > content;
+
+ if (boost::filesystem::exists (can / "ASSETMAP") || (boost::filesystem::exists (can / "ASSETMAP.xml"))) {
+ content.push_back (shared_ptr<DCPContent>(new DCPContent(can)));
+ } else {
+ /* I guess it's not a DCP */
+ content = content_factory (can);
+ }
+
+ BOOST_FOREACH (shared_ptr<Content> j, content) {
+ if (j->video) {
+ j->video->set_scale (VideoContentScale (content_ratio));
+ }
+ film->examine_and_add_content (j);