diff --git a/docs/Manual.md b/docs/Manual.md index cbbdb28..9a3228d 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -435,7 +435,7 @@ are used as defined by autofit and start-size. Default: 1500 Minimum aspect ratio, if the AR is smaller than the defined value then the window AR is set to 16/9. This avoids a square window for Music -with cover art. Default: 1.2 +with cover art. Default: 1 #### --remember-window-position=\ diff --git a/src/Misc/App.cs b/src/Misc/App.cs index a8f9a67..f44f453 100644 --- a/src/Misc/App.cs +++ b/src/Misc/App.cs @@ -36,7 +36,7 @@ namespace mpvnet public static int StartThreshold { get; set; } = 1500; public static int RecentCount { get; set; } = 15; - public static float MinimumAspectRatio { get; set; } = 1.2f; + public static float MinimumAspectRatio { get; set; } = 1; public static float QuickBookmark { get; set; } public static Extension Extension { get; set; } diff --git a/src/Misc/Player.cs b/src/Misc/Player.cs index e000a68..4d0b306 100644 --- a/src/Misc/Player.cs +++ b/src/Misc/Player.cs @@ -149,6 +149,8 @@ namespace mpvnet ProcessCommandLine(true); + Environment.SetEnvironmentVariable("mpv_client", "mpvnet"); + mpv_error err = mpv_initialize(Handle); if (err < 0) diff --git a/src/Resources/editor_conf.txt b/src/Resources/editor_conf.txt index 7066c57..a66ab97 100644 --- a/src/Resources/editor_conf.txt +++ b/src/Resources/editor_conf.txt @@ -457,7 +457,7 @@ help = Threshold in milliseconds to wait for libmpv returning the video resoluti name = minimum-aspect-ratio file = mpvnet filter = Screen -help = Minimum aspect ratio, if the AR is smaller than the defined value then the window AR is set to 16/9. This avoids a square window for Music with cover art. Default: 1.2 (mpv.net specific option) +help = Minimum aspect ratio, if the AR is smaller than the defined value then the window AR is set to 16/9. This avoids a square window for Music with cover art. Default: 1 (mpv.net specific option) [setting] name = remember-window-position