History

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

Guido Cella committed 2 years ago

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

Showing the changes to TOOLS/lua/cycle-deinterlace-pullup.lua (1 of 2 files). Show all

Unified · Split

TOOLS/lua/cycle-deinterlace-pullup.lua+5−5
@@ -15,10 +15,10 @@ · 14 unmodified lines
15-- TODO: It might make sense to use hardware assisted vdpaupp=pullup,15-- TODO: It might make sense to use hardware assisted vdpaupp=pullup,
16-- if available, but I don't have hardware to test it. Patch welcome.16-- if available, but I don't have hardware to test it. Patch welcome.
17 17
18script_name = mp.get_script_name()18local script_name = mp.get_script_name()
19pullup_label = string.format("%s-pullup", script_name)19local pullup_label = string.format("%s-pullup", script_name)
20 20
21function pullup_on()21local function pullup_on()
22 for _, vf in pairs(mp.get_property_native('vf')) do22 for _, vf in pairs(mp.get_property_native('vf')) do
23 if vf['label'] == pullup_label then23 if vf['label'] == pullup_label then
24 return "yes"24 return "yes"
@@ -27,7 +27,7 @@ function pullup_on() · 2 unmodified lines
27 return "no"27 return "no"
28end28end
29 29
30function do_cycle()30local function do_cycle()
31 if pullup_on() == "yes" then31 if pullup_on() == "yes" then
32 -- if pullup is on remove it32 -- if pullup is on remove it
33 mp.command(string.format("vf del @%s:pullup", pullup_label))33 mp.command(string.format("vf del @%s:pullup", pullup_label))
@@ -44,7 +44,7 @@ function do_cycle() · 10 unmodified lines
44 end44 end
45end45end
46 46
47function cycle_deinterlace_pullup_handler()47local function cycle_deinterlace_pullup_handler()
48 do_cycle()48 do_cycle()
49 -- independently determine current state and give user feedback49 -- independently determine current state and give user feedback
50 mp.osd_message(string.format("deinterlace: %s\n"..50 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