Showing the changes to player/lua/select.lua (1 of 1 file). Show all
Unified · Split
| @@ -27,7 +27,7 @@ end · 26 unmodified lines | |||
| 27 | 27 | ||
| 28 | mp.add_forced_key_binding(nil, "select-playlist", function () | 28 | mp.add_forced_key_binding(nil, "select-playlist", function () |
| 29 | local playlist = {} | 29 | local playlist = {} |
| 30 | local default_item = 1 | 30 | local default_item |
| 31 | 31 | ||
| 32 | for i, entry in ipairs(mp.get_property_native("playlist")) do | 32 | for i, entry in ipairs(mp.get_property_native("playlist")) do |
| 33 | playlist[i] = select(2, utils.split_path(entry.filename)) | 33 | playlist[i] = select(2, utils.split_path(entry.filename)) |
| @@ -100,7 +100,7 @@ end) · 66 unmodified lines | |||
| 100 | local function select_track(property, type, prompt, error) | 100 | local function select_track(property, type, prompt, error) |
| 101 | local tracks = {} | 101 | local tracks = {} |
| 102 | local items = {} | 102 | local items = {} |
| 103 | local default_item = 1 | 103 | local default_item |
| 104 | local track_id = mp.get_property_native(property) | 104 | local track_id = mp.get_property_native(property) |
| 105 | 105 | ||
| 106 | for _, track in ipairs(mp.get_property_native("track-list")) do | 106 | for _, track in ipairs(mp.get_property_native("track-list")) do |
| @@ -260,7 +260,7 @@ mp.add_forced_key_binding(nil, "select-audio-device", function () · 153 unmodified lines | |||
| 260 | -- otherwise its value is just auto and there is no current-audio-device | 260 | -- otherwise its value is just auto and there is no current-audio-device |
| 261 | -- property. | 261 | -- property. |
| 262 | local selected_device = mp.get_property("audio-device") | 262 | local selected_device = mp.get_property("audio-device") |
| 263 | local default_item = 1 | 263 | local default_item |
| 264 | 264 | ||
| 265 | if #devices == 0 then | 265 | if #devices == 0 then |
| 266 | show_error("No available audio devices.") | 266 | show_error("No available audio devices.") |