diff options
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/options.c b/src/options.c index eddf914..3595866 100644 --- a/src/options.c +++ b/src/options.c @@ -199,13 +199,13 @@ int options_parse(options_t* opt, int argc, char* argv[]) PARSE_STRING_PARAM("-s","--source", opt->src_bin_desc_) PARSE_STRING_PARAM("-d","--output-dir", opt->output_dir_) PARSE_STRING_PARAM("-f","--name-format", opt->name_format_) - PARSE_INT_PARAM("-l","--length", opt->length_) + PARSE_INT_PARAM("-i","--interval", opt->interval_) PARSE_INT_PARAM("-o","--offset", opt->offset_) else return i; } - if(opt->length_ <= 0) + if(opt->interval_ <= 0) return -4; if(opt->debug_) { @@ -244,7 +244,7 @@ void options_default(options_t* opt) opt->src_bin_desc_ = NULL; opt->output_dir_ = strdup("/srv/archiv"); opt->name_format_ = strdup("%Y-%m-%d-%H00.ogg"); - opt->length_ = 3600; + opt->interval_ = 50; opt->offset_ = 0; } @@ -289,8 +289,8 @@ void options_print_usage() printf(" as data source, see gst-launch man-page for syntax\n"); printf(" [-d|--output-dir] <path> path to the output directory\n"); printf(" [-f|--name-format] <format> the file name format, see manpage of date for the syntax\n"); - printf(" [-l|--length] <value> length of one file in seconds\n"); - printf(" [-o|--offset] <value> time offset for recordings in 0.1s\n"); + printf(" [-i|--interval] <value> interval for time checks in ms\n"); + printf(" [-o|--offset] <value> time offset for recordings in ms\n"); } void options_print_version() @@ -316,6 +316,6 @@ void options_print(options_t* opt) printf("src_bin_desc: >>%s<<\n", opt->src_bin_desc_); printf("output_dir: '%s'\n", opt->output_dir_); printf("name_format: '%s'\n", opt->name_format_); - printf("length: %d\n", opt->length_); + printf("interval: %d\n", opt->interval_); printf("offset: %d\n", opt->offset_); } |