Bladeren bron

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 jaren geleden
bovenliggende
commit
f909160589
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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");