[vlc-commits] [Git][videolan/vlc][master] Lua SD: fix error "attempt to assign to const variable '_'"

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Apr 1 05:47:59 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
77c9d193 by Fatih Uzunoglu at 2026-04-01T05:33:09+00:00
Lua SD: fix error "attempt to assign to const variable '_'"

This fixes build failure with Lua 5.5's `luac`.

- - - - -


1 changed file:

- share/lua/sd/fmc.lua


Changes:

=====================================
share/lua/sd/fmc.lua
=====================================
@@ -32,7 +32,7 @@ function main()
         if tonumber( show_node.children_map["songcount"][1].children[1] ) > 0 then
             local songs_node = node:add_node( {title="Songs"} )
             for _, song_node in ipairs( show_node.children_map["songs"][1].children ) do
-                _, _, artist, title = string.find( song_node.children_map["name"][1].children[1], "(.+)%s*-%s*(.+)" )
+                __, __, artist, title = string.find( song_node.children_map["name"][1].children[1], "(.+)%s*-%s*(.+)" )
                 local rank = song_node.children_map["rank"][1].children[1]
                 if rank ~= nil then
                     rank = "Rank: " .. rank



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/77c9d1932ce85f62a42c1d5c5e457d03fac385ad

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/77c9d1932ce85f62a42c1d5c5e457d03fac385ad
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list