[3.0 backport] Lua : replace recursive logic with iterative approach
This is a cherry-pick of commit 33e05c84 from master.
Backport of !7144 (merged) for the 3.0 branch to maintain compatibility with older VLC versions.
This is a cherry-pick of commit 33e05c84 from master.
Backport of !7144 (merged) for the 3.0 branch to maintain compatibility with older VLC versions.
VideoLAN code repository instance