Fix message for high bitrate frames during verify.
[dcpomatic.git] / src / wx / player_information.cc
index 279ff08609b97b9ecd5b12510f5878603690fdb1..806611140f2a028d4de5bde16e69fc8c7f31ce36 100644 (file)
@@ -139,7 +139,15 @@ PlayerInformation::triggered_update ()
        }
 
        int r = 0;
-       checked_set (_dcp[r++], std_to_wx(dcp->name()));
+       checked_set(_dcp[r], std_to_wx(dcp->name()));
+       wxString tooltip;
+       for (auto directory: dcp->directories()) {
+               tooltip += std_to_wx(directory.string()) + "\n";
+       }
+       if (!tooltip.empty()) {
+               _dcp[r]->SetToolTip(tooltip.substr(0, tooltip.length() - 1));
+       }
+       ++r;
 
        if (dcp->needs_assets()) {
                checked_set (_dcp[r], _("Needs OV"));
@@ -158,7 +166,7 @@ PlayerInformation::triggered_update ()
                checked_set (_dcp[r++], wxString::Format(_("Frame rate: %d"), (int) lrint(*dcp->video_frame_rate())));
        }
        if (dcp->audio && !dcp->audio->streams().empty()) {
-               checked_set (_dcp[r++], wxString::Format(_("Audio channels: %d"), dcp->audio->streams().front()->channels()));
+               checked_set(_dcp[r++], wxString::Format(_("Audio channels: %d"), dcp->active_audio_channels()));
        }
        if (!dcp->text.empty()) {
                checked_set (_dcp[r++], _("Subtitles: yes"));