- if (is_dcp) {
- content.push_back (shared_ptr<Content> (new DCPContent (film, path)));
- } else {
- content.push_back (shared_ptr<Content> (new ImageContent (film, path)));
+ if (image_files > 0 && sound_files == 0) {
+ content.push_back (shared_ptr<Content> (new ImageContent(path)));
+ } else if (image_files == 0 && sound_files > 0) {
+ for (boost::filesystem::directory_iterator i(path); i != boost::filesystem::directory_iterator(); ++i) {
+ content.push_back (shared_ptr<FFmpegContent> (new FFmpegContent(i->path())));
+ }