浏览代码

PlayerComponent: fix AC3/DTS passthrough breakage

The "advanced" setting was accidentally still queried here. Since it's
usually "false" now by default (because it was removed), it'll disable
any kind of audio passthrough (DTS etc.) in the following situations:

- new installations after the setting was removed (1.1.7 and later)
- the user had the "advanced" setting to false previously

It still worked if the user had enabled "Advanced" in older versions,
and then upgraded.

Manually editing plexmediaplayer.conf and adding

"advanced": true,

to the audio setting works this bug around as well.
Vincent Lang 8 年之前
父节点
当前提交
523d14d407
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -909,7 +909,7 @@ void PlayerComponent::setAudioConfiguration()
     QStringList codecs;
     if (deviceType == AUDIO_DEVICE_TYPE_SPDIF)
       codecs = AudioCodecsSPDIF();
-    else if (deviceType == AUDIO_DEVICE_TYPE_HDMI && audioSection->value("advanced").toBool())
+    else if (deviceType == AUDIO_DEVICE_TYPE_HDMI)
       codecs = AudioCodecsAll();
 
     for(const QString& key : codecs)