瀏覽代碼

PlayerComponent: fix hardware decoding setting

The "hwdec" property doesn't take a bool - it's a choice option with
symbolic strings as value, of which only "auto" and "no" are interesting
for us.
Vincent Lang 9 年之前
父節點
當前提交
f909160589
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -899,7 +899,7 @@ void PlayerComponent::updateVideoSettings()
     hwdecEnabled = true;
     hwdecVTFormat = "uyvy422";
   }
-  mpv::qt::set_property_variant(m_mpv, "hwdec", hwdecEnabled);
+  mpv::qt::set_property_variant(m_mpv, "hwdec", hwdecEnabled ? "auto" : "no");
   mpv::qt::set_option_variant(m_mpv, "videotoolbox-format", hwdecVTFormat);
 
   QVariant deinterlace = SettingsComponent::Get().value(SETTINGS_SECTION_VIDEO, "deinterlace");