Minimum still duration of 1s; give new content a default format.
[dcpomatic.git] / src / lib / film.cc
index 2e2ec368abfafa74dd5e04989a9892a30a88b226..58d1e50103285b2d0a47126a04c462a04bb2ac00 100644 (file)
@@ -890,6 +890,16 @@ Film::set_content (string c)
                throw;
 
        }
+
+       /* Default format */
+       switch (content_type()) {
+       case STILL:
+               set_format (Format::from_id ("var-185"));
+               break;
+       case VIDEO:
+               set_format (Format::from_id ("185"));
+               break;
+       }
 }
 
 void