ges-launch: Fix compiler warnings
authorSebastian Dröge <sebastian@centricular.com>
Fri, 5 Sep 2014 19:08:49 +0000 (22:08 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 5 Sep 2014 19:08:49 +0000 (22:08 +0300)
ges_validate_print_action_types() takes a const gchar **.

tools/ges-launch.c
tools/ges-validate.h

index 5aca77e..62cef6d 100644 (file)
@@ -847,7 +847,8 @@ main (int argc, gchar ** argv)
   }
 
   if (list_action_types)
-    return ges_validate_print_action_types (argv + 1, argc - 1);
+    return ges_validate_print_action_types ((const gchar **) argv + 1,
+        argc - 1);
 
   tried_uris = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
   if (((!load_path && !scenario && (argc < 4)))) {
index 661ae8d..c214585 100644 (file)
@@ -32,7 +32,7 @@ gint
 ges_validate_clean (GstPipeline *pipeline);
 
 void ges_validate_handle_request_state_change (GstMessage *message, GMainLoop *mainloop);
-gint ges_validate_print_action_types (gchar **types, gint num_types);
+gint ges_validate_print_action_types (const gchar **types, gint num_types);
 
 G_END_DECLS