summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-09 23:31:26 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-09 23:31:26 +0100
commit8e269447379c7191d55b895bd8149578a681f659 (patch)
treefe2d8ee7a2713991c17b413b1ea8c1e82376f8b5
parent67d91e0a16f95b566fd2c2ca33e7828bcd25bcf6 (diff)
Fix DCP audio rate with 96kHz sources.
-rw-r--r--ChangeLog5
-rw-r--r--src/lib/film.cc8
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e221bbd15..e0f610217 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-09 Carl Hetherington <cth@carlh.net>
+
+ * Fix various incorrect behaviours with 96kHz
+ audio sources.
+
2015-08-06 Carl Hetherington <cth@carlh.net>
* Version 2.1.36 released.
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 5e7bab0b7..a20a44e77 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1024,7 +1024,13 @@ Film::playlist_changed ()
int
Film::audio_frame_rate () const
{
- /* XXX */
+ BOOST_FOREACH (shared_ptr<Content> i, content ()) {
+ shared_ptr<AudioContent> a = dynamic_pointer_cast<AudioContent> (i);
+ if (a && a->has_rate_above_48k ()) {
+ return 96000;
+ }
+ }
+
return 48000;
}