mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 14:09:40 +00:00
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:
parent
2949fc34fa
commit
068a4b8e6f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user