summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTodor Tomov <ttomov@mm-sol.com>2011-01-19 17:03:37 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-01-19 17:30:37 +0100
commit44a0dd7dac66b5ba87f71d8b16153ae6725111c1 (patch)
tree1936c2361accae9c41a45d08cd1bcb60c734e3ec /main.c
parent5e883a1186481eb29d947d1453916c702b6bcd92 (diff)
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 <ttomov@mm-sol.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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)