Fixes #8561.
Showing the changes to player/lua/stats.lua (1 of 4 files). Show all
Unified · Split
| @@ -952,9 +952,10 @@ local function add_video(s) · 951 unmodified lines | ||
| 952 | 952 | return |
| 953 | 953 | end |
| 954 | 954 | |
| 955 | − append(s, "", {prefix="Video:", nl=o.nl .. o.nl, indent=""}) | |
| 956 | 955 | local track = mp.get_property_native("current-tracks/video") |
| 957 | − if track and append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) then | |
| 956 | + if track then | |
| 957 | + append(s, "", {prefix=track.image and "Image:" or "Video:", nl=o.nl .. o.nl, indent=""}) | |
| 958 | + append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) | |
| 958 | 959 | append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", |
| 959 | 960 | no_prefix_markup=true, suffix="]"}) |
| 960 | 961 | if track["codec"] ~= track["decoder"] then |
| @@ -1217,7 +1218,7 @@ local function add_track(c, t, i) · 256 unmodified lines | ||
| 1217 | 1218 | return |
| 1218 | 1219 | end |
| 1219 | 1220 | |
| 1220 | − local type = t["type"]:sub(1,1):upper() .. t["type"]:sub(2) | |
| 1221 | + local type = t.image and "Image" or t["type"]:sub(1, 1):upper() .. t["type"]:sub(2) | |
| 1221 | 1222 | append(c, "", {prefix=type .. ":", nl=o.nl .. o.nl, indent=""}) |
| 1222 | 1223 | append(c, t["title"], {prefix_sep="", nl="", indent=""}) |
| 1223 | 1224 | append(c, t["id"], {prefix="ID:"}) |