mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
ce87de95ea
commit
8289f64904
3 changed files with 17 additions and 11 deletions
|
@ -59,7 +59,7 @@
|
||||||
<para>
|
<para>
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
gst-validate-1.0 --list-action-types description
|
gst-validate-1.0 --inspect-action-type action_type_name
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<para>
|
<para>
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
gst-validate-1.0 --list-action-types
|
gst-validate-1.0 --inspect-action-type
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
<para>
|
<para>
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
gst-validate-transcoding-1.0 --list-action-types
|
gst-validate-transcoding-1.0 --inspect-action-type
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -777,7 +777,7 @@ main (int argc, gchar ** argv)
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
const gchar *scenario = NULL, *configs = NULL;
|
const gchar *scenario = NULL, *configs = NULL;
|
||||||
gboolean want_help = FALSE;
|
gboolean want_help = FALSE;
|
||||||
gboolean list_scenarios = FALSE, list_action_types = FALSE;
|
gboolean list_scenarios = FALSE, inspect_action_type = FALSE;
|
||||||
|
|
||||||
GOptionEntry options[] = {
|
GOptionEntry options[] = {
|
||||||
{"output-format", 'o', 0, G_OPTION_ARG_CALLBACK, &_parse_encoding_profile,
|
{"output-format", 'o', 0, G_OPTION_ARG_CALLBACK, &_parse_encoding_profile,
|
||||||
|
@ -805,8 +805,11 @@ main (int argc, gchar ** argv)
|
||||||
"exiting.", NULL},
|
"exiting.", NULL},
|
||||||
{"list-scenarios", 'l', 0, G_OPTION_ARG_NONE, &list_scenarios,
|
{"list-scenarios", 'l', 0, G_OPTION_ARG_NONE, &list_scenarios,
|
||||||
"List the avalaible scenarios that can be run", NULL},
|
"List the avalaible scenarios that can be run", NULL},
|
||||||
{"list-action-types", 't', 0, G_OPTION_ARG_NONE, &list_action_types,
|
{"inspect-action-type", 't', 0, G_OPTION_ARG_NONE, &inspect_action_type,
|
||||||
"List the avalaible action types with which to write scenarios", NULL},
|
"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,
|
{"scenarios-defs-output-file", '\0', 0, G_OPTION_ARG_FILENAME,
|
||||||
&output_file, "The output file to store scenarios details. "
|
&output_file, "The output file to store scenarios details. "
|
||||||
"Implies --list-scenario",
|
"Implies --list-scenario",
|
||||||
|
@ -870,7 +873,7 @@ main (int argc, gchar ** argv)
|
||||||
|
|
||||||
_register_actions ();
|
_register_actions ();
|
||||||
|
|
||||||
if (list_action_types) {
|
if (inspect_action_type) {
|
||||||
if (gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1))
|
if (gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -367,7 +367,7 @@ main (int argc, gchar ** argv)
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
const gchar *scenario = NULL, *configs = NULL;
|
const gchar *scenario = NULL, *configs = NULL;
|
||||||
gboolean list_scenarios = FALSE, monitor_handles_state,
|
gboolean list_scenarios = FALSE, monitor_handles_state,
|
||||||
list_action_types = FALSE;
|
inspect_action_type = FALSE;
|
||||||
GstStateChangeReturn sret;
|
GstStateChangeReturn sret;
|
||||||
gchar *output_file = NULL;
|
gchar *output_file = NULL;
|
||||||
gint ret = 0;
|
gint ret = 0;
|
||||||
|
@ -388,8 +388,11 @@ main (int argc, gchar ** argv)
|
||||||
&output_file, "The output file to store scenarios details. "
|
&output_file, "The output file to store scenarios details. "
|
||||||
"Implies --list-scenario",
|
"Implies --list-scenario",
|
||||||
NULL},
|
NULL},
|
||||||
{"list-action-types", 't', 0, G_OPTION_ARG_NONE, &list_action_types,
|
{"inspect-action-type", 't', 0, G_OPTION_ARG_NONE, &inspect_action_type,
|
||||||
"List the avalaible action types with which to write scenarios", NULL},
|
"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,
|
{"set-configs", '\0', 0, G_OPTION_ARG_STRING, &configs,
|
||||||
"Let you set a config scenario, the scenario needs to be set as 'config"
|
"Let you set a config scenario, the scenario needs to be set as 'config"
|
||||||
"' you can specify a list of scenario separated by ':'"
|
"' you can specify a list of scenario separated by ':'"
|
||||||
|
@ -445,7 +448,7 @@ main (int argc, gchar ** argv)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list_action_types) {
|
if (inspect_action_type) {
|
||||||
_register_playbin_actions ();
|
_register_playbin_actions ();
|
||||||
|
|
||||||
if (!gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1)) {
|
if (!gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1)) {
|
||||||
|
|
Loading…
Reference in a new issue