Skip to content

Commit

Permalink
Fix font size retrieval when no size is set in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-heinrich committed Oct 29, 2022
1 parent 4afe4a2 commit bb23824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality-menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ local opts = {
opt.read_options(opts, "quality-menu")
opts.quality_strings = utils.parse_json(opts.quality_strings)

opts.font_size = tonumber(opts.style_ass_tags:match('\\fs(%d+%.?%d*)')) or 20
opts.font_size = tonumber(opts.style_ass_tags:match('\\fs(%d+%.?%d*)')) or mp.get_property_number('osd-font-size') or 25

-- special thanks to reload.lua (https://github.com/4e6/mpv-reload/)
local function reload_resume()
Expand Down

0 comments on commit bb23824

Please sign in to comment.