History

TOOLS/cycle-deinterlace-pullup.lua: fix lint warnings

Guido Cella committed 2 years ago

Commit c12e4371 parent f3f77352 files · +5 −6Browse files

Unified · Split

2 files
  1. .luacheckrc +0 −1
  2. TOOLS/lua/cycle-deinterlace-pullup.lua +5 −5
.luacheckrc+0−1
@@ -110,7 +110,6 @@ max_line_length = 100 · 109 unmodified lines
110110 -- TODO: Remove everything below this line
111111 local todo = {
112112 "player/lua/osc.lua",
113− "TOOLS/lua/cycle-deinterlace-pullup.lua",
114113 "TOOLS/lua/nan-test.lua",
115114 "TOOLS/lua/observe-all.lua",
116115 "TOOLS/lua/osd-test.lua",
TOOLS/lua/cycle-deinterlace-pullup.lua+5−5
@@ -15,10 +15,10 @@ · 14 unmodified lines
1515 -- TODO: It might make sense to use hardware assisted vdpaupp=pullup,
1616 -- if available, but I don't have hardware to test it. Patch welcome.
1717
18−script_name = mp.get_script_name()
19−pullup_label = string.format("%s-pullup", script_name)
18+local script_name = mp.get_script_name()
19+local pullup_label = string.format("%s-pullup", script_name)
2020
21−function pullup_on()
21+local function pullup_on()
2222 for _, vf in pairs(mp.get_property_native('vf')) do
2323 if vf['label'] == pullup_label then
2424 return "yes"
@@ -27,7 +27,7 @@ function pullup_on() · 2 unmodified lines
2727 return "no"
2828 end
2929
30−function do_cycle()
30+local function do_cycle()
3131 if pullup_on() == "yes" then
3232 -- if pullup is on remove it
3333 mp.command(string.format("vf del @%s:pullup", pullup_label))
@@ -44,7 +44,7 @@ function do_cycle() · 10 unmodified lines
4444 end
4545 end
4646
47−function cycle_deinterlace_pullup_handler()
47+local function cycle_deinterlace_pullup_handler()
4848 do_cycle()
4949 -- independently determine current state and give user feedback
5050 mp.osd_message(string.format("deinterlace: %s\n"..

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t