validate: Rename --list-action-types to --inspect-action-type

Making clearer the meaning of the parameter and closer to the
usual naming in the GStreamer land.
This commit is contained in:
Thibault Saunier 2014-10-12 19:46:39 +02:00
parent ce87de95ea
commit 8289f64904
3 changed files with 17 additions and 11 deletions

View file

@ -59,7 +59,7 @@
<para>
<informalexample>
<programlisting>
gst-validate-1.0 --list-action-types description
gst-validate-1.0 --inspect-action-type action_type_name
</programlisting>
</informalexample>
</para>
@ -103,7 +103,7 @@
<para>
<informalexample>
<programlisting>
gst-validate-1.0 --list-action-types
gst-validate-1.0 --inspect-action-type
</programlisting>
</informalexample>
</para>
@ -113,7 +113,7 @@
<para>
<informalexample>
<programlisting>
gst-validate-transcoding-1.0 --list-action-types
gst-validate-transcoding-1.0 --inspect-action-type
</programlisting>
</informalexample>
</para>

View file

@ -777,7 +777,7 @@ main (int argc, gchar ** argv)
GError *err = NULL;
const gchar *scenario = NULL, *configs = NULL;
gboolean want_help = FALSE;
gboolean list_scenarios = FALSE, list_action_types = FALSE;
gboolean list_scenarios = FALSE, inspect_action_type = FALSE;
GOptionEntry options[] = {
{"output-format", 'o', 0, G_OPTION_ARG_CALLBACK, &_parse_encoding_profile,
@ -805,8 +805,11 @@ main (int argc, gchar ** argv)
"exiting.", NULL},
{"list-scenarios", 'l', 0, G_OPTION_ARG_NONE, &list_scenarios,
"List the avalaible scenarios that can be run", NULL},
{"list-action-types", 't', 0, G_OPTION_ARG_NONE, &list_action_types,
"List the avalaible action types with which to write scenarios", NULL},
{"inspect-action-type", 't', 0, G_OPTION_ARG_NONE, &inspect_action_type,
"Inspect the avalaible action types with which to write scenarios"
" if no parameter passed, it will list all avalaible action types"
" otherwize will print the full description of the wanted types",
NULL},
{"scenarios-defs-output-file", '\0', 0, G_OPTION_ARG_FILENAME,
&output_file, "The output file to store scenarios details. "
"Implies --list-scenario",
@ -870,7 +873,7 @@ main (int argc, gchar ** argv)
_register_actions ();
if (list_action_types) {
if (inspect_action_type) {
if (gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1))
return 0;

View file

@ -367,7 +367,7 @@ main (int argc, gchar ** argv)
GError *err = NULL;
const gchar *scenario = NULL, *configs = NULL;
gboolean list_scenarios = FALSE, monitor_handles_state,
list_action_types = FALSE;
inspect_action_type = FALSE;
GstStateChangeReturn sret;
gchar *output_file = NULL;
gint ret = 0;
@ -388,8 +388,11 @@ main (int argc, gchar ** argv)
&output_file, "The output file to store scenarios details. "
"Implies --list-scenario",
NULL},
{"list-action-types", 't', 0, G_OPTION_ARG_NONE, &list_action_types,
"List the avalaible action types with which to write scenarios", NULL},
{"inspect-action-type", 't', 0, G_OPTION_ARG_NONE, &inspect_action_type,
"Inspect the avalaible action types with which to write scenarios"
" if no parameter passed, it will list all avalaible action types"
" otherwize will print the full description of the wanted types",
NULL},
{"set-configs", '\0', 0, G_OPTION_ARG_STRING, &configs,
"Let you set a config scenario, the scenario needs to be set as 'config"
"' you can specify a list of scenario separated by ':'"
@ -445,7 +448,7 @@ main (int argc, gchar ** argv)
return 0;
}
if (list_action_types) {
if (inspect_action_type) {
_register_playbin_actions ();
if (!gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1)) {