X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_create.cc;h=0e5bee70a7402cbd50dd27ecb4886dbc30cdbbe1;hb=6f344b876689a1234a5eb75041882f06f5d9fe5c;hp=2911be0a70414ffac412ca2595e0dde485387629;hpb=964d6abe033e9df9c4faf30d06309dab064e28ad;p=dcpomatic.git diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 2911be0a7..0e5bee70a 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ #include "lib/dcp_content_type.h" #include "lib/ratio.h" #include "lib/image_content.h" +#include "lib/video_content.h" #include #include #include @@ -215,9 +216,8 @@ main (int argc, char* argv[]) for (int i = optind; i < argc; ++i) { shared_ptr c = content_factory (film, boost::filesystem::canonical (argv[i])); - shared_ptr vc = dynamic_pointer_cast (c); - if (vc) { - vc->set_scale (VideoContentScale (content_ratio)); + if (c->video) { + c->video->set_scale (VideoContentScale (content_ratio)); } film->examine_and_add_content (c); } @@ -231,7 +231,7 @@ main (int argc, char* argv[]) for (ContentList::iterator i = content.begin(); i != content.end(); ++i) { shared_ptr ic = dynamic_pointer_cast (*i); if (ic) { - ic->set_video_length (still_length * 24); + ic->video->set_video_length (still_length * 24); } }