UI tweaks for still image DCPs with audio.
[dcpomatic.git] / src / lib / film.cc
index 2e2ec368abfafa74dd5e04989a9892a30a88b226..9da15a73baf31ffc36f27bbfa05f87e61ad4310a 100644 (file)
@@ -890,6 +890,21 @@ 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;
+       }
+
+       /* Still image DCPs must use external audio */
+       if (content_type() == STILL) {
+               set_use_content_audio (false);
+       }
 }
 
 void