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