1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-26 13:19:12 +00:00

player: update for --video-aspect deprecation

We had some dangling references to this option.
This commit is contained in:
Niklas Haas 2019-10-04 22:40:19 +02:00
parent cb95ce75b5
commit e8f32a92f8
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ static const char *const backup_properties[] = {
"sub-style-override", "sub-style-override",
"ab-loop-a", "ab-loop-a",
"ab-loop-b", "ab-loop-b",
"options/video-aspect", "options/video-aspect-override",
0 0
}; };

View File

@ -416,8 +416,8 @@ local function add_single_video(json)
-- set aspect ratio for anamorphic video -- set aspect ratio for anamorphic video
if not (json.stretched_ratio == nil) and if not (json.stretched_ratio == nil) and
not option_was_set("video-aspect") then not option_was_set("video-aspect-override") then
mp.set_property('file-local-options/video-aspect', json.stretched_ratio) mp.set_property('file-local-options/video-aspect-override', json.stretched_ratio)
end end
local stream_opts = mp.get_property_native("file-local-options/stream-lavf-o", {}) local stream_opts = mp.get_property_native("file-local-options/stream-lavf-o", {})