mirror of https://github.com/mpv-player/mpv
command: show "no" for hwdec-current if hwdec failed
Now actually matches the documentation (was an empty string not null). Fixes #11464.
This commit is contained in:
parent
692ccca3a2
commit
908dc79129
|
@ -2137,7 +2137,7 @@ static int mp_property_hwdec_current(void *ctx, struct m_property *prop,
|
||||||
|
|
||||||
char *current = NULL;
|
char *current = NULL;
|
||||||
mp_decoder_wrapper_control(dec, VDCTRL_GET_HWDEC, ¤t);
|
mp_decoder_wrapper_control(dec, VDCTRL_GET_HWDEC, ¤t);
|
||||||
if (!current)
|
if (!current || !current[0])
|
||||||
current = "no";
|
current = "no";
|
||||||
return m_property_strdup_ro(action, arg, current);
|
return m_property_strdup_ro(action, arg, current);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue