diff options
author | wm4 <wm4@nowhere> | 2014-02-24 20:47:20 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-24 22:50:24 +0100 |
commit | f628d5e8592b774132565ab153a8464c8d83548b (patch) | |
tree | ee84db150d8efde25cc001b3481ac0d77daa8939 /player/lua/defaults.lua | |
parent | 942fb43d0cdc58b0b2fad15bab564fd5105698ff (diff) | |
download | mpv-f628d5e8592b774132565ab153a8464c8d83548b.tar.bz2 mpv-f628d5e8592b774132565ab153a8464c8d83548b.tar.xz |
lua: add a bunch of functions to get/set properties by their native type
There are some complications because the client API distinguishes
between integers and floats, while Lua has only "numbers" (which are
usually floats). But I think this should work now.
Diffstat (limited to 'player/lua/defaults.lua')
-rw-r--r-- | player/lua/defaults.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index c505e29930..3f3dab7490 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -1,3 +1,5 @@ +mp.UNKNOWN_TYPE = "this value is inserted if the C type is not supported" + function mp.get_script_name() return mp.script_name end |