summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2019-10-04 22:40:19 +0200
committerNiklas Haas <git@haasn.xyz>2019-10-04 22:41:31 +0200
commite8f32a92f861d670b51eff8ac29cecf963f3b8f0 (patch)
tree014c0b0c5b04d924b864384d428b857216ac6b28
parentcb95ce75b5c114b6fd2c6b37ac6941b6848c8014 (diff)
downloadmpv-e8f32a92f861d670b51eff8ac29cecf963f3b8f0.tar.bz2
mpv-e8f32a92f861d670b51eff8ac29cecf963f3b8f0.tar.xz
player: update for --video-aspect deprecation
We had some dangling references to this option.
-rw-r--r--player/configfiles.c2
-rw-r--r--player/lua/ytdl_hook.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index 6657693ec5..93fd645d1f 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -237,7 +237,7 @@ static const char *const backup_properties[] = {
"sub-style-override",
"ab-loop-a",
"ab-loop-b",
- "options/video-aspect",
+ "options/video-aspect-override",
0
};
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index ab29610f0c..6b465dcb9a 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -416,8 +416,8 @@ local function add_single_video(json)
-- set aspect ratio for anamorphic video
if not (json.stretched_ratio == nil) and
- not option_was_set("video-aspect") then
- mp.set_property('file-local-options/video-aspect', json.stretched_ratio)
+ not option_was_set("video-aspect-override") then
+ mp.set_property('file-local-options/video-aspect-override', json.stretched_ratio)
end
local stream_opts = mp.get_property_native("file-local-options/stream-lavf-o", {})