diff options
author | Thomas Reufer <thomas@reufer.ch> | 2017-04-21 08:31:41 +0200 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2017-04-21 08:31:41 +0200 |
commit | bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc (patch) | |
tree | 34955bc827f91c891841e9b1ca505731a985ac6a | |
parent | 0b676b7aaa659443c52f4d2f249946c834683fd6 (diff) | |
download | vdr-plugin-rpihddevice-bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc.tar.gz vdr-plugin-rpihddevice-bc9f9791eeb1eb2fed27d837b0787d9f91dc15dc.tar.bz2 |
always resample audio with less than 2 and more than 6 channels
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | setup.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,7 @@ VDR Plugin 'rpihddevice' Revision History - make use of advanced deinterlacer configurable - add debug option to log number of executed OpenVG commands and flushes - fixed: + - always resample audio with less than 2 and more than 6 channels - fixed compilation with GCC-6 - implement proper handling of display and pixel aspect ratios - fixed vertical text position @@ -235,6 +235,9 @@ bool cRpiSetup::IsAudioFormatSupported(cAudioCodec::eCodec codec, if (codec == cAudioCodec::eMPG || codec == cAudioCodec::eAAC) return false; + if (channels < 2 || channels > 6) + return false; + switch (GetAudioFormat()) { case cAudioFormat::ePassThrough: |