diff options
author | Todor Tomov <ttomov@mm-sol.com> | 2011-01-19 17:03:37 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-01-19 17:30:37 +0100 |
commit | 44a0dd7dac66b5ba87f71d8b16153ae6725111c1 (patch) | |
tree | 1936c2361accae9c41a45d08cd1bcb60c734e3ec | |
parent | 5e883a1186481eb29d947d1453916c702b6bcd92 (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>
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |