diff options
authorJean-Yves Avenard <>2012-02-21 13:53:34 (GMT)
committer Jean-Yves Avenard <>2012-02-21 14:34:10 (GMT)
commitc29d36f1634cd837276b4fd8cfea5d5d75304da8 (patch)
parent9743d9c6af8a6a519c7a4d98fb434e3fa45ebe76 (diff)
Do not attempt to play audio with more than 8 channels if not supported natively.
While trying to play an encrypted video over airplay, all nasty things would happen. So add a safeguard so we never try to play more than 8 channels audio unless the hardware supports it (e.g. not requiring downmixing) [cherry-picked from c5b6e923]
1 files changed, 7 insertions, 0 deletions
diff --git a/mythtv/libs/libmyth/audiooutputbase.cpp b/mythtv/libs/libmyth/audiooutputbase.cpp
index 48e1801..54e9371 100644
--- a/mythtv/libs/libmyth/audiooutputbase.cpp
+++ b/mythtv/libs/libmyth/audiooutputbase.cpp
@@ -421,6 +421,13 @@ void AudioOutputBase::Reconfigure(const AudioSettings &orig_settings)
+ if (needs_downmix && source_channels > 8)
+ {
+ Error("Aborting Audio Reconfigure. "
+ "Can't handle audio with more than 8 channels.");
+ return;
+ }
/* Encode to AC-3 if we're allowed to passthru but aren't currently
and we have more than 2 channels but multichannel PCM is not supported
or if the device just doesn't support the number of channels */