1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-12 09:56:30 +00:00

options: fix --geometry to string conversion

Fixes #1744.
This commit is contained in:
wm4 2015-04-01 22:32:34 +02:00
parent f5603cba23
commit 9e98702493

View File

@ -2014,13 +2014,9 @@ static char *print_geometry(const m_option_t *opt, const void *val)
APPEND_PER(h, h_per);
}
if (gm->xy_valid) {
res = talloc_asprintf_append(res, "+");
if (gm->x_sign)
res = talloc_asprintf_append(res, "-");
res = talloc_asprintf_append(res, gm->x_sign ? "-" : "+");
APPEND_PER(x, x_per);
res = talloc_asprintf_append(res, "+");
if (gm->y_sign)
res = talloc_asprintf_append(res, "-");
res = talloc_asprintf_append(res, gm->y_sign ? "-" : "+");
APPEND_PER(y, y_per);
}
}