summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 49b53c1..f4a101b 100644
--- a/src/options.c
+++ b/src/options.c
@@ -196,6 +196,7 @@ int options_parse(options_t* opt, int argc, char* argv[])
PARSE_STRING_PARAM("-P","--write-pid", opt->pid_file_)
PARSE_STRING_LIST("-L","--log", opt->log_targets_)
PARSE_BOOL_PARAM("-U", "--debug", opt->debug_)
+ PARSE_STRING_PARAM("-s","--source", opt->src_bin_desc_)
else
return i;
}
@@ -233,6 +234,7 @@ void options_default(options_t* opt)
opt->pid_file_ = NULL;
string_list_init(&opt->log_targets_);
opt->debug_ = 0;
+ opt->src_bin_desc_ = NULL;
}
void options_clear(options_t* opt)
@@ -251,6 +253,8 @@ void options_clear(options_t* opt)
if(opt->pid_file_)
free(opt->pid_file_);
string_list_clear(&opt->log_targets_);
+ if(opt->src_bin_desc_)
+ free(opt->src_bin_desc_);
}
void options_print_usage()
@@ -266,6 +270,8 @@ void options_print_usage()
printf(" [-L|--log] <target>:<level>[,<param1>[,<param2>..]]\n");
printf(" add a log target, can be invoked several times\n");
printf(" [-U|--debug] don't daemonize and log to stdout with maximum log level\n");
+ printf(" [-s|--source] <description> a gstreamer pipeline-style description which will be used\n");
+ printf(" as data source, see gst-launch man-page for syntax\n");
}
void options_print_version()
@@ -288,4 +294,5 @@ void options_print(options_t* opt)
printf("log_targets: \n");
string_list_print(&opt->log_targets_, " '", "'\n");
printf("debug: %s\n", !opt->debug_ ? "false" : "true");
+ printf("src_bin_desc: >>%s<<\n", opt->src_bin_desc_);
}