1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-26 01:23:17 +00:00

input: fix inverted condition

I don't know if this broke anything but the the condition was inverted
as a result of the recent commit.

Fixes: 1a27f3caf7 ("input: use bstr for section name")
This commit is contained in:
llyyr 2024-08-06 16:57:21 +05:30 committed by Kacper Michajłow
parent d766fc0914
commit 67bd00f163

View File

@ -316,7 +316,7 @@ static void append_bind_info(struct input_ctx *ictx, char **pmsg,
msg = talloc_asprintf_append(msg, " '%s'", stripped);
if (!cmd)
msg = talloc_asprintf_append(msg, " (invalid)");
if (bstr_equals0(bind->owner->section, "default"))
if (!bstr_equals0(bind->owner->section, "default"))
msg = talloc_asprintf_append(msg, " in section {%.*s}",
BSTR_P(bind->owner->section));
msg = talloc_asprintf_append(msg, " in %s", bind->location);