summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-16 19:40:43 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-16 19:40:43 +0100
commit20eea989f452ea1a6af0af6b5c5b504d3b19480c (patch)
tree51c922df42151747efc5f4db90bf79b53d6b4bac /src/lib/film.cc
parentd71b3fffa09263a2116b3f91981c1999b4ae873c (diff)
Modify previous commit to move restriction code into the UI.
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 98b921029..66d651c27 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1232,18 +1232,3 @@ Film::audio_output_names () const
return vector<string> (n.begin(), n.begin() + audio_channels ());
}
-
-int
-Film::audio_channels () const
-{
- int minimum = 0;
- if (_audio_processor) {
- minimum = _audio_processor->out_channels ();
- }
-
- if (minimum % 2 == 1) {
- ++minimum;
- }
-
- return max (minimum, _audio_channels);
-}