diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-09 20:39:36 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-11 22:28:50 +0000 |
commit | 908dc791299672042b0fc24de64b57f88bba313c (patch) | |
tree | e1038ec8256cf04ab38a44428b1d355760b5403c /player | |
parent | 692ccca3a2eb48810eb1a8abb346be06a9b17d53 (diff) | |
download | mpv-908dc791299672042b0fc24de64b57f88bba313c.tar.bz2 mpv-908dc791299672042b0fc24de64b57f88bba313c.tar.xz |
command: show "no" for hwdec-current if hwdec failed
Now actually matches the documentation (was an empty string not null).
Fixes #11464.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index afacfdea9d..ae12748378 100644 --- a/player/command.c +++ b/player/command.c @@ -2137,7 +2137,7 @@ static int mp_property_hwdec_current(void *ctx, struct m_property *prop, char *current = NULL; mp_decoder_wrapper_control(dec, VDCTRL_GET_HWDEC, ¤t); - if (!current) + if (!current || !current[0]) current = "no"; return m_property_strdup_ro(action, arg, current); } |