Fix MSVC const warnings
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 17 Nov 2016 18:24:08 +0000 (10:24 -0800)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 17 Nov 2016 20:36:03 +0000 (17:36 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=774638

validate/gst/validate/gst-validate-pad-monitor.c
validate/tools/gst-validate-transcoding.c

index 000b2b9..3fb7068 100644 (file)
@@ -377,7 +377,7 @@ _check_field_type (GstValidatePadMonitor * monitor,
     return;
   }
 
-  memset (rejected_types, 0, sizeof (rejected_types));
+  memset ((gchar **) rejected_types, 0, sizeof (rejected_types));
   va_start (var_args, field);
   while ((type = va_arg (var_args, GType)) != 0) {
     if (gst_structure_has_field_typed (structure, field, type)) {
index 6ebff7e..6e6d8a6 100644 (file)
@@ -796,7 +796,7 @@ main (int argc, gchar ** argv)
 #endif
 
   GError *err = NULL;
-  const gchar *scenario = NULL, *configs = NULL;
+  gchar *scenario = NULL, *configs = NULL;
   gboolean want_help = FALSE;
   gboolean list_scenarios = FALSE, inspect_action_type = FALSE;