From ea3540b81d66556b3b3d1b5680574d5631bce113 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 17 Aug 2020 14:25:09 -0400 Subject: [PATCH] Simplify log_osd API Don't expose duration API since no one currently uses it. Co-authored-by: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com> --- webui.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/webui.lua b/webui.lua index 5a558cd4..c5cb48d6 100644 --- a/webui.lua +++ b/webui.lua @@ -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()