Skip to content

Commit

Permalink
Simplify log_osd API
Browse files Browse the repository at this point in the history
Don't expose duration API since no one currently uses it.

Co-authored-by: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com>
  • Loading branch information
vapier and open-dynaMIX committed Aug 17, 2020
1 parent 2c3c3a5 commit ea3540b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions webui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,11 @@ local function log_line(request, code, length)
clientip..' - '..user..' ['..time..'] "'..path..'" '..code..' '..length..' "'..referer..'" "'..agent..'"')
end

local function log_osd(text, duration)
local function log_osd(text)
if not options.osd_logging then
return
end

if duration == nil then
duration = 5
end

mp.osd_message(MSG_PREFIX .. text, duration)
mp.osd_message(MSG_PREFIX .. text, 5)
end

local function build_status_response()
Expand Down

0 comments on commit ea3540b

Please sign in to comment.