diff options
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 549ad1d03f..3d093c7e2e 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -892,9 +892,9 @@ local function add_video(s) end append(s, "", {prefix=o.nl .. o.nl .. "Video:", nl="", indent=""}) - local ci = mp.get_property_native("video-codec-info") - if ci and append(s, ci["desc"], {prefix_sep="", nl="", indent=""}) then - append(s, ci["profile"], {prefix="[", nl="", indent=" ", prefix_sep="", + local track = mp.get_property_native("current-tracks/video") + if track and append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) then + append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", no_prefix_markup=true, suffix="]"}) append_property(s, "hwdec-current", {prefix="HW:", nl="", indent=o.prefix_sep .. o.prefix_sep, @@ -948,10 +948,10 @@ local function add_audio(s) end append(s, "", {prefix=o.nl .. o.nl .. "Audio:", nl="", indent=""}) - local ci = mp.get_property_native("audio-codec-info") - if ci then - append(s, ci["desc"], {prefix_sep="", nl="", indent=""}) - append(s, ci["profile"], {prefix="[", nl="", indent=" ", prefix_sep="", + local track = mp.get_property_native("current-tracks/audio") + if track then + append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) + append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", no_prefix_markup=true, suffix="]"}) end append_property(s, "current-ao", {prefix="AO:", nl="", |