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",
"ab-loop-a",
"ab-loop-b",
"options/video-aspect",
"options/video-aspect-override",
0
};

View File

@ -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", {})