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 | 28 | mp.add_forced_key_binding(nil, "select-playlist", function () |
| 29 | 29 | local playlist = {} |
| 30 | − local default_item = 1 | |
| 30 | + local default_item | |
| 31 | 31 | |
| 32 | 32 | for i, entry in ipairs(mp.get_property_native("playlist")) do |
| 33 | 33 | playlist[i] = select(2, utils.split_path(entry.filename)) |
| @@ -100,7 +100,7 @@ end) · 66 unmodified lines | ||
| 100 | 100 | local function select_track(property, type, prompt, error) |
| 101 | 101 | local tracks = {} |
| 102 | 102 | local items = {} |
| 103 | − local default_item = 1 | |
| 103 | + local default_item | |
| 104 | 104 | local track_id = mp.get_property_native(property) |
| 105 | 105 | |
| 106 | 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 | 260 | -- otherwise its value is just auto and there is no current-audio-device |
| 261 | 261 | -- property. |
| 262 | 262 | local selected_device = mp.get_property("audio-device") |
| 263 | − local default_item = 1 | |
| 263 | + local default_item | |
| 264 | 264 | |
| 265 | 265 | if #devices == 0 then |
| 266 | 266 | show_error("No available audio devices.") |