Skip to content
Browse files

Do not attempt to play audio with more than 8 channels if not support…

…ed 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)
  • Loading branch information...
1 parent efcfee3 commit c5b6e923e3fd0a95190c290544bc820f8a86a0cc @jyavenard jyavenard committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 mythtv/libs/libmyth/audio/audiooutputbase.cpp
View
7 mythtv/libs/libmyth/audio/audiooutputbase.cpp
@@ -622,6 +622,13 @@ void AudioOutputBase::Reconfigure(const AudioSettings &orig_settings)
.arg(samplerate/1000)
.arg(source_channels));
+ if (needs_downmix && source_channels > 8)
+ {
+ Error("Aborting Audio Reconfigure. "
+ "Can't handle audio with more than 8 channels.");
+ return;
+ }
+
VBAUDIO(QString("enc(%1), passthru(%2), features (%3) "
"configured_channels(%4), %5 channels supported(%6) "
"max_channels(%7)")

0 comments on commit c5b6e92

Please sign in to comment.
Something went wrong with that request. Please try again.