summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.h
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/lib/dcp_examiner.h
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/lib/dcp_examiner.h')
-rw-r--r--src/lib/dcp_examiner.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index b51e7ae7a..1a3615867 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -90,6 +90,10 @@ public:
return _audio_channels.get_value_or (0);
}
+ int active_audio_channels() const {
+ return _active_audio_channels.get_value_or(0);
+ }
+
Frame audio_length () const override {
return _audio_length;
}
@@ -179,6 +183,7 @@ private:
boost::optional<dcp::Size> _video_size;
Frame _video_length = 0;
boost::optional<int> _audio_channels;
+ boost::optional<int> _active_audio_channels;
boost::optional<int> _audio_frame_rate;
Frame _audio_length = 0;
std::string _name;