Formatting/C++11.
[dcpomatic.git] / src / lib / hints.cc
index ad95ff9808430c1b605835f9fb061463f9386eb0..c9f901c1829b1f9346c7dcf5b52d5558513d358f 100644 (file)
@@ -158,7 +158,7 @@ void
 Hints::check_unusual_container ()
 {
        auto const film_container = film()->container()->id();
-       if (film_container != "185" && film_container != "239" && film_container != "190") {
+       if (film_container != "185" && film_container != "239") {
                hint (_("Your DCP uses an unusual container ratio.  This may cause problems on some projectors.  If possible, use Flat or Scope for the DCP container ratio"));
        }
 }
@@ -206,6 +206,16 @@ Hints::check_frame_rate ()
 }
 
 
+void
+Hints::check_4k_3d ()
+{
+       auto f = film();
+       if (f->resolution() == Resolution::FOUR_K && f->three_d()) {
+               hint (_("4K 3D is only supported by a very limited number of projectors.  Unless you know that you will play this DCP back on a capable projector, it is advisable to set the DCP to be 2K in the \"DCP→Video\" tab."));
+       }
+}
+
+
 void
 Hints::check_speed_up ()
 {
@@ -377,12 +387,14 @@ Hints::thread ()
        check_unusual_container ();
        check_high_j2k_bandwidth ();
        check_frame_rate ();
+       check_4k_3d ();
        check_speed_up ();
        check_vob ();
        check_3d_in_2d ();
        check_loudness ();
        check_ffec_and_ffmc_in_smpte_feature ();
        check_out_of_range_markers ();
+       check_text_languages ();
 
        emit (bind(boost::ref(Progress), _("Examining closed captions")));
 
@@ -574,3 +586,18 @@ Hints::join ()
 {
        _thread.join ();
 }
+
+
+void
+Hints::check_text_languages ()
+{
+       for (auto i: film()->content()) {
+               for (auto j: i->text) {
+                       if (j->use() && !j->language()) {
+                               hint (_("At least one piece of subtitle or closed caption content has no specified language.  "
+                                       "It is advisable to set the language for each piece of subtitle or closed caption content in the \"Content→Timed Text\" tab"));
+                               return;
+                       }
+               }
+       }
+}