1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-10 03:31:32 +00:00

stats.lua: sort filter parameters to ensure consistent output

This commit is contained in:
Kacper Michajłow 2023-10-07 18:12:36 +02:00 committed by Niklas Haas
parent 9dddfc4fcc
commit 73db283296

View File

@ -602,8 +602,8 @@ local function append_filters(s, prop, prefix)
end end
local p = {} local p = {}
for key,value in pairs(f.params) do for _,key in ipairs(sorted_keys(f.params)) do
p[#p+1] = key .. "=" .. value p[#p+1] = key .. "=" .. f.params[key]
end end
if #p > 0 then if #p > 0 then
p = " [" .. table.concat(p, " ") .. "]" p = " [" .. table.concat(p, " ") .. "]"