diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2015-01-06 01:50:15 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-07 16:30:25 +0200 |
commit | fe279d823dc253a95002a0a73d9d791e372e156b (patch) | |
tree | 8af28e7e18b6cf50187b994ed8d0d3e8ba5c9b99 /yavta.c | |
parent | 790ba46852e59c1f302fef4e3d43655e2505000b (diff) |
Fix data offset config option parsing
The option itself was considered correctly, but a small but crucial break
statement was missing. --data-offset option does not take an argument
either.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r-- | yavta.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1770,7 +1770,7 @@ static struct option opts[] = { {"buffer-type", 1, 0, 'B'}, {"capture", 2, 0, 'c'}, {"check-overrun", 0, 0, 'C'}, - {"data-prefix", 1, 0, OPT_DATA_PREFIX}, + {"data-prefix", 0, 0, OPT_DATA_PREFIX}, {"delay", 1, 0, 'd'}, {"enum-formats", 0, 0, OPT_ENUM_FORMATS}, {"enum-inputs", 0, 0, OPT_ENUM_INPUTS}, @@ -2034,6 +2034,7 @@ int main(int argc, char *argv[]) break; case OPT_DATA_PREFIX: dev.write_data_prefix = true; + break; default: printf("Invalid option -%c\n", c); printf("Run %s -h for help.\n", argv[0]); |