# gstdebugutils-msvc-fix.diff
#
# Array stack declaration fix for MSVC.
#
# MSVC doesn't support constructing dynamically sized arrays on the stack,
# the size has to be constant (known at compile-time).
#

=== modified file 'gst/gstdebugutils.c'
--- gst/gstdebugutils.c	2007-11-05 18:34:40 +0000
+++ gst/gstdebugutils.c	2007-11-05 23:16:15 +0000
@@ -138,8 +138,9 @@
   gchar *color_name;
   gchar *state_name = NULL;
   gchar *param_name = NULL;
-  gchar spc[1 + indent * 2];
+  gchar *spc = NULL;
 
+  spc = g_malloc (1 + indent * 2);
   memset (spc, 32, indent * 2);
   spc[indent * 2] = '\0';
 
@@ -397,6 +398,7 @@
     }
   }
   gst_iterator_free (element_iter);
+  g_free (spc);
 }
 
 /*

