dicetv: Use guint8 instead of char (which can be signed or unsigned)
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Jun 2009 18:38:01 +0000 (20:38 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Jun 2009 19:13:35 +0000 (21:13 +0200)
gst/effectv/gstdice.c

index f95bc4c..1208ea5 100644 (file)
@@ -55,7 +55,7 @@ struct _GstDiceTV
   GstVideoFilter videofilter;
 
   gint width, height;
-  gchar *dicemap;
+  guint8 *dicemap;
 
   gint g_cube_bits;
   gint g_cube_size;
@@ -107,8 +107,7 @@ gst_dicetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
   if (gst_structure_get_int (structure, "width", &filter->width) &&
       gst_structure_get_int (structure, "height", &filter->height)) {
     g_free (filter->dicemap);
-    filter->dicemap =
-        (gchar *) g_malloc (filter->height * filter->width * sizeof (gchar));
+    filter->dicemap = (guint8 *) g_malloc (filter->height * filter->width);
     gst_dicetv_create_map (filter);
     ret = TRUE;
   }