mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate: Take a const gchar ** in gst_validate_print_action_types
This is what we actually need and thus is cleaner.
This commit is contained in:
parent
69165a9f04
commit
3755581fd3
4 changed files with 5 additions and 4 deletions
|
@ -1981,7 +1981,8 @@ gst_validate_list_action_types (void)
|
||||||
* Returns: True if all types could be printed
|
* Returns: True if all types could be printed
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_validate_print_action_types (gchar ** wanted_types, gint num_wanted_types)
|
gst_validate_print_action_types (const gchar ** wanted_types,
|
||||||
|
gint num_wanted_types)
|
||||||
{
|
{
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
gint nfound = 0;
|
gint nfound = 0;
|
||||||
|
|
|
@ -93,7 +93,7 @@ GType gst_validate_action_get_type (void);
|
||||||
#define GST_VALIDATE_ACTION_TYPE(obj) ((GstValidateActionType*) obj)
|
#define GST_VALIDATE_ACTION_TYPE(obj) ((GstValidateActionType*) obj)
|
||||||
GType gst_validate_action_type_get_type (void);
|
GType gst_validate_action_type_get_type (void);
|
||||||
|
|
||||||
gboolean gst_validate_print_action_types (gchar ** wanted_types, gint num_wanted_types);
|
gboolean gst_validate_print_action_types (const gchar ** wanted_types, gint num_wanted_types);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstValidateActionParameter:
|
* GstValidateActionParameter:
|
||||||
|
|
|
@ -871,7 +871,7 @@ main (int argc, gchar ** argv)
|
||||||
_register_actions ();
|
_register_actions ();
|
||||||
|
|
||||||
if (list_action_types) {
|
if (list_action_types) {
|
||||||
if (gst_validate_print_action_types (argv + 1, argc - 1))
|
if (gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -448,7 +448,7 @@ main (int argc, gchar ** argv)
|
||||||
if (list_action_types) {
|
if (list_action_types) {
|
||||||
_register_playbin_actions ();
|
_register_playbin_actions ();
|
||||||
|
|
||||||
if (!gst_validate_print_action_types (argv + 1, argc - 1)) {
|
if (!gst_validate_print_action_types ((const gchar **) argv + 1, argc - 1)) {
|
||||||
GST_ERROR ("Could not print all wanted types");
|
GST_ERROR ("Could not print all wanted types");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue