+ if (!dcp) {
+ checked_set (_cpl_name, _("No DCP loaded."));
+ checked_set (_size, wxT(""));
+ checked_set (_length, wxT(""));
+ return;
+ }
+
+ DCPOMATIC_ASSERT (dcp->video);
+
+ checked_set (_cpl_name, std_to_wx(dcp->name()));
+ checked_set (_size, wxString::Format(_("Size: %dx%d"), dcp->video->size().width, dcp->video->size().height));
+
+ optional<double> vfr;
+ vfr = dcp->video_frame_rate ();
+ DCPOMATIC_ASSERT (vfr);
+ checked_set (
+ _length,
+ wxString::Format(
+ _("Length: %s (%ld frames)"),
+ std_to_wx(time_to_hmsf(dcp->full_length(), lrint(*vfr))).data(),
+ dcp->full_length().frames_round(*vfr)
+ )
+ );