summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-08-09 20:39:36 -0500
committerDudemanguy <random342@airmail.cc>2023-08-11 22:28:50 +0000
commit908dc791299672042b0fc24de64b57f88bba313c (patch)
treee1038ec8256cf04ab38a44428b1d355760b5403c /player
parent692ccca3a2eb48810eb1a8abb346be06a9b17d53 (diff)
downloadmpv-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.c2
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, &current);
- if (!current)
+ if (!current || !current[0])
current = "no";
return m_property_strdup_ro(action, arg, current);
}