projects
/
platform
/
upstream
/
gst-rtsp-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27736d4
)
test-record: Check parameter count and print out help
author
Jan Schmidt
<jan@centricular.com>
Sun, 16 Aug 2015 16:36:31 +0000
(
02:36
+1000)
committer
Jan Schmidt
<jan@centricular.com>
Thu, 3 Sep 2015 12:20:11 +0000
(22:20 +1000)
If no launch pipeline was supplied, print out some help
examples/test-record.c
patch
|
blob
|
history
diff --git
a/examples/test-record.c
b/examples/test-record.c
index
1c6ac3f
..
1c37503
100644
(file)
--- a/
examples/test-record.c
+++ b/
examples/test-record.c
@@
-51,6
+51,11
@@
main (int argc, char *argv[])
g_printerr ("Error parsing options: %s\n", error->message);
return -1;
}
+
+ if (argc < 2) {
+ g_print ("%s\n", g_option_context_get_help (optctx, TRUE, NULL));
+ return 1;
+ }
g_option_context_free (optctx);
loop = g_main_loop_new (NULL, FALSE);