Fix player audio, almost totally broken by a stupid mistake
[dcpomatic.git] / src / wx / player_information.cc
index 4e95e0956fb208de2e17b57553923beb2f1744ce..806611140f2a028d4de5bde16e69fc8c7f31ce36 100644 (file)
@@ -166,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"));