Fix cache size configuration

- changes to the correct mpv option "demuxer-max-bytes"
- fix size calcuation. the configurable cache values of [10, 75, 150,
  500] are presumed to be megabytes
This commit is contained in:
Andrew Rabert 2024-04-20 12:55:49 -04:00
parent 2949fc34fa
commit 068a4b8e6f

View File

@ -1266,7 +1266,7 @@ void PlayerComponent::updateVideoSettings()
setAudioDelay(m_playbackAudioDelay);
QVariant cache = SettingsComponent::Get().value(SETTINGS_SECTION_VIDEO, "cache");
mpv::qt::set_property(m_mpv, "cache", cache.toInt() * 1024);
mpv::qt::set_property(m_mpv, "demuxer-max-bytes", cache.toInt() * 1024 * 1024);
updateVideoAspectSettings();
}