History

various: sync shown track flags

Show the same flags in loadfile.c, select.lua and stats.lua. The only differences are that only stats.lua prints both image and albumart because it's supposed to show detailed track information, and select.lua prints the image flag because pressing g-v doesn't show Video or Image like in loadfile.c and stats.lua.

Guido Cella committed 2 years ago

Commit 7bcd5251 parent 2fd88ff3 files · +27 −9Browse files

Showing the changes to player/lua/stats.lua (1 of 3 files). Show all

Unified · Split

player/lua/stats.lua+2−2
@@ -1227,8 +1227,8 @@ local function add_track(c, t, i) · 1226 unmodified lines
1227 append(c, t["ff-index"], {prefix="FFmpeg Index:", nl="", indent=o.prefix_sep .. o.prefix_sep})1227 append(c, t["ff-index"], {prefix="FFmpeg Index:", nl="", indent=o.prefix_sep .. o.prefix_sep})
1228 append(c, t["external-filename"], {prefix="File:"})1228 append(c, t["external-filename"], {prefix="File:"})
1229 append(c, "", {prefix="Flags:"})1229 append(c, "", {prefix="Flags:"})
1230 local flags = {"default", "forced", "external", "dependent",1230 local flags = {"default", "forced", "dependent", "visual-impaired",
1231 "hearing-impaired", "visual-impaired", "image", "albumart"}1231 "hearing-impaired", "image", "albumart", "external"}
1232 local any = false1232 local any = false
1233 for _, flag in ipairs(flags) do1233 for _, flag in ipairs(flags) do
1234 if t[flag] then1234 if t[flag] then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t