From 44a0dd7dac66b5ba87f71d8b16153ae6725111c1 Mon Sep 17 00:00:00 2001 From: Todor Tomov Date: Wed, 19 Jan 2011 17:03:37 +0200 Subject: 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 --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3