Fix missing verification note.
[dcpomatic.git] / src / wx / verify_dcp_dialog.cc
index c8a3ad321cbca3740238e2f63dc350382d59270a..9b6a8c9498845a99ea7e2cb1276beac7e7eaf0bc 100644 (file)
 
 */
 
+
 #include "verify_dcp_dialog.h"
 #include "wx_util.h"
 #include "lib/verify_dcp_job.h"
 #include "lib/warnings.h"
 #include <dcp/verify.h>
 #include <dcp/raw_convert.h>
+#include <boost/algorithm/string.hpp>
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/richtext/richtextctrl.h>
 #include <wx/notebook.h>
 DCPOMATIC_ENABLE_WARNINGS
 
+
 using std::list;
 using std::map;
 using std::shared_ptr;
 using std::string;
+using std::vector;
+
 
 VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job)
        : wxDialog (parent, wxID_ANY, _("DCP verification"), wxDefaultPosition, {600, 400})
@@ -158,6 +163,9 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::Code::EXTERNAL_ASSET:
                        add(i, _("This DCP refers to at the asset %n in another DCP (and perhaps others), so it is a \"version file\" (VF)"));
                        break;
+               case dcp::VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD:
+                       add(i, _("The asset %f is 3D but its MXF is marked as 2D."));
+                       break;
                case dcp::VerificationNote::Code::INVALID_STANDARD:
                        add(i, _("This DCP uses the Interop standard, but it should be made with SMPTE."));
                        break;
@@ -338,6 +346,22 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::Code::SUBTITLE_OVERLAPS_REEL_BOUNDARY:
                        add(i, _("A subtitle lasts longer than the reel it is in."));
                        break;
+               case dcp::VerificationNote::Code::MISMATCHED_TIMED_TEXT_RESOURCE_ID:
+                       add(i, _("The Resource ID in a timed text MXF did not match the ID of the contained XML."));
+                       break;
+               case dcp::VerificationNote::Code::INCORRECT_TIMED_TEXT_ASSET_ID:
+                       add(i, _("The Asset ID in a timed text MXF is the same as the Resource ID or that of the contained XML."));
+                       break;
+               case dcp::VerificationNote::Code::MISMATCHED_TIMED_TEXT_DURATION:
+               {
+                       vector<string> parts;
+                       boost::split (parts, i.note().get(), boost::is_any_of(" "));
+                       add(i, wxString::Format(_("The reel duration (%s) of some timed text is not the same as the ContainerDuration (%s) of its MXF."), std_to_wx(parts[0]), std_to_wx(parts[1])));
+                       break;
+               }
+               case dcp::VerificationNote::Code::MISSED_CHECK_OF_ENCRYPTED:
+                       add(i, _("Part of the DCP could not be checked because no KDM was available"));
+                       break;
                }
        }