From 6bd4540106d1967bfb12f0a4bb32a0fefcc18517 Mon Sep 17 00:00:00 2001 From: stax76 Date: Sun, 22 May 2022 08:22:49 +0200 Subject: [PATCH] Fix #422 slow startup using osd-scale-by-window=no --- docs/Changelog.md | 7 ++++--- src/Misc/Player.cs | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/Changelog.md b/docs/Changelog.md index 637948c..4188e33 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,14 +1,15 @@ - New feature to change profile using the command palette. -- Progress command shows time and date. - New show-santa-logo (green and grumpy) option. - New quick bookmark feature, see manual. -- Fix crash choosing Matroska edition in the menu. -- Fix auto-play not working with user scripts. +- Progress command shows time and date. - When input.conf is created on the very first start and a script-opts folder does not exist, a script-opts folder is created with defaults for osc and console. - Support mpv idle property, see manual for remarks. +- Fix crash choosing Matroska edition in the menu. +- Fix auto-play not working with user scripts. +- Fix slow startup using osd-scale-by-window=no. - libmpv shinchiro 2022-05-17 with idle fix diff --git a/src/Misc/Player.cs b/src/Misc/Player.cs index 045ded1..334ec55 100644 --- a/src/Misc/Player.cs +++ b/src/Misc/Player.cs @@ -185,6 +185,9 @@ namespace mpvnet ShowLogo(); }); + if (!GetPropertyBool("osd-scale-by-window")) + App.StartThreshold = 0; + Initialized?.Invoke(); InvokeAsync(InitializedAsync); }