mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
test-record: Check parameter count and print out help
If no launch pipeline was supplied, print out some help
This commit is contained in:
parent
27736d406e
commit
2a41502cde
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ main (int argc, char *argv[])
|
||||||
g_printerr ("Error parsing options: %s\n", error->message);
|
g_printerr ("Error parsing options: %s\n", error->message);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argc < 2) {
|
||||||
|
g_print ("%s\n", g_option_context_get_help (optctx, TRUE, NULL));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
g_option_context_free (optctx);
|
g_option_context_free (optctx);
|
||||||
|
|
||||||
loop = g_main_loop_new (NULL, FALSE);
|
loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
Loading…
Reference in a new issue