浏览代码

PlayerComponent: fix general multichannel failure

Caused by my own stupidity and inability to deal with my own API
changes. While the code "should" work, it still won't until the
deprecation of the old semantics of the "audio-channels" property is
finished and the new behavior is default.
Vincent Lang 8 年之前
父节点
当前提交
cb13d2188c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -933,7 +933,7 @@ void PlayerComponent::setAudioConfiguration()
   if (deviceType == AUDIO_DEVICE_TYPE_SPDIF)
     layout = "2.0";
 
-  mpv::qt::set_property(m_mpv, "audio-channels", layout);
+  mpv::qt::set_option_variant(m_mpv, "audio-channels", layout);
 
   // if the user has indicated that PCM only works for stereo, and that
   // the receiver supports AC3, set this extra option that allows us to transcode