From: Todor Tomov Date: Wed, 19 Jan 2011 15:03:37 +0000 (+0200) Subject: main.c: allow spaces in format definition X-Git-Url: https://git.ideasonboard.org/media-ctl.git/commitdiff_plain/44a0dd7dac66b5ba87f71d8b16153ae6725111c1 main.c: allow spaces in format definition Allow spaces after '[' in format definition. Example: media-ctl -f '"OMAP3 ISP resizer":1[ UYVY 864x480]' Signed-off-by: Todor Tomov --- diff --git a/main.c b/main.c index 9952a60..d156d2a 100644 --- a/main.c +++ b/main.c @@ -272,6 +272,8 @@ static struct media_entity_pad *parse_pad_format(struct media_device *media, if (*p++ != '[') return NULL; + for (; isspace(*p); ++p); + if (isalnum(*p)) { ret = parse_format(format, p, &end); if (ret < 0)