diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2014-10-12 19:46:39 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2014-10-12 19:46:39 +0200 |
commit | 8289f649045c9637d017d3ae215673872f35068b (patch) | |
tree | 6d8ebbb6c1390a6615fbcf26bdf227bb1f4469a3 | |
parent | ce87de95eae7369f143b6e5f46ad1114f3ea2f84 (diff) |
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.
-rw-r--r-- | validate/docs/validate/scenarios.xml | 6 | ||||
-rw-r--r-- | validate/tools/gst-validate-transcoding.c | 11 | ||||
-rw-r--r-- | validate/tools/gst-validate.c | 11 |
3 files changed, 17 insertions, 11 deletions
diff --git a/validate/docs/validate/scenarios.xml b/validate/docs/validate/scenarios.xml index 1ad305b..b4195de 100644 --- a/validate/docs/validate/scenarios.xml +++ b/validate/docs/validate/scenarios.xml @@ -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> diff --git a/validate/tools/gst-validate-transcoding.c b/validate/tools/gst-validate-transcoding.c index d9fdaad..717ee1e 100644 --- a/validate/tools/gst-validate-transcoding.c +++ b/validate/tools/gst-validate-transcoding.c @@ -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; diff --git a/validate/tools/gst-validate.c b/validate/tools/gst-validate.c index 38f3b02..e0bcb43 100644 --- a/validate/tools/gst-validate.c +++ b/validate/tools/gst-validate.c @@ -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)) { |