Unified · Split
| @@ -921,6 +921,10 @@ local function add_video(s) · 920 unmodified lines | ||
| 921 | 921 | if track and append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) then |
| 922 | 922 | append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", |
| 923 | 923 | no_prefix_markup=true, suffix="]"}) |
| 924 | + if track["codec"] ~= track["decoder"] then | |
| 925 | + append(s, track["decoder"], {prefix="[", nl="", indent=" ", prefix_sep="", | |
| 926 | + no_prefix_markup=true, suffix="]"}) | |
| 927 | + end | |
| 924 | 928 | append_property(s, "hwdec-current", {prefix="HW:", nl="", |
| 925 | 929 | indent=o.prefix_sep .. o.prefix_sep, |
| 926 | 930 | no_prefix_markup=false, suffix=""}, {no=true, [""]=true}) |
| @@ -976,6 +980,10 @@ local function add_audio(s) · 49 unmodified lines | ||
| 976 | 980 | local track = mp.get_property_native("current-tracks/audio") |
| 977 | 981 | if track then |
| 978 | 982 | append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) |
| 983 | + if track["codec"] ~= track["decoder"] then | |
| 984 | + append(s, track["decoder"], {prefix="[", nl="", indent=" ", prefix_sep="", | |
| 985 | + no_prefix_markup=true, suffix="]"}) | |
| 986 | + end | |
| 979 | 987 | append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", |
| 980 | 988 | no_prefix_markup=true, suffix="]"}) |
| 981 | 989 | end |