History

stats.lua: fix codec-profile position for audio

Kacper Michajłow committed 2 years ago

Commit a3f72ea1 parent ea034511 file · +2 −2Browse files

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

Unified · Split

player/lua/stats.lua+2−2
@@ -1016,12 +1016,12 @@ local function add_audio(s) · 1015 unmodified lines
1016 local track = mp.get_property_native("current-tracks/audio")1016 local track = mp.get_property_native("current-tracks/audio")
1017 if track then1017 if track then
1018 append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""})1018 append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""})
1019 append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="",
1020 no_prefix_markup=true, suffix="]"})
1019 if track["codec"] ~= track["decoder"] then1021 if track["codec"] ~= track["decoder"] then
1020 append(s, track["decoder"], {prefix="[", nl="", indent=" ", prefix_sep="",1022 append(s, track["decoder"], {prefix="[", nl="", indent=" ", prefix_sep="",
1021 no_prefix_markup=true, suffix="]"})1023 no_prefix_markup=true, suffix="]"})
1022 end1024 end
1023 append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="",
1024 no_prefix_markup=true, suffix="]"})
1025 end1025 end
1026 append_property(s, "current-ao", {prefix="AO:", nl="",1026 append_property(s, "current-ao", {prefix="AO:", nl="",
1027 indent=o.prefix_sep .. o.prefix_sep})1027 indent=o.prefix_sep .. o.prefix_sep})

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