Add default still length option. Split config dialog into tabs.
[dcpomatic.git] / src / lib / imagemagick_content.cc
index 59fde40bb7d1059025bdaa91f941485c2204e2c5..9e5f00ba0c7dbf78f4daa9e4295552d9acb1f095 100644 (file)
@@ -20,6 +20,7 @@
 #include <libcxml/cxml.h>
 #include "imagemagick_content.h"
 #include "imagemagick_decoder.h"
+#include "config.h"
 #include "compose.hpp"
 
 #include "i18n.h"
@@ -32,7 +33,7 @@ ImageMagickContent::ImageMagickContent (boost::filesystem::path f)
        : Content (f)
        , VideoContent (f)
 {
-       
+
 }
 
 ImageMagickContent::ImageMagickContent (shared_ptr<const cxml::Node> node)
@@ -73,7 +74,7 @@ ImageMagickContent::examine (shared_ptr<Film> film, shared_ptr<Job> job, bool qu
        {
                boost::mutex::scoped_lock lm (_mutex);
                /* Initial length */
-               _video_length = 10 * 24;
+               _video_length = Config::instance()->default_still_length() * 24;
        }
        
        take_from_video_decoder (decoder);