summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-06 19:36:24 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-06 19:36:26 +0200
commitd860d9de91607aad3561e087fe83c2290ec5d42c (patch)
tree56311538b8082903ff25e880377f9caebd2645ba /src/wx
parent606b342315995f8e5cc28f6ea13bef9858038d5f (diff)
Fix player audio, almost totally broken by a stupid mistakev2.16.59
in 78b2c650a9249cb7165d269b4378391d31e68e8b Following that commit 16 channel audio streams were being read as 6-channel, with unsurprising consequences.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/player_information.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/player_information.cc b/src/wx/player_information.cc
index 4e95e0956..806611140 100644
--- a/src/wx/player_information.cc
+++ b/src/wx/player_information.cc
@@ -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"));