summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-15 20:38:01 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-15 21:13:35 +0200
commit46ceaf957a105e4e5d8ecbb30a92287196c3e63e (patch)
tree3eaa5df1b5bc0f632688197e1f633b6b227d91df
parentaaf8c8769d5420be69c455100d54989009a4f4d3 (diff)
dicetv: Use guint8 instead of char (which can be signed or unsigned)
-rw-r--r--gst/effectv/gstdice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c
index f95bc4cd..1208ea5d 100644
--- a/gst/effectv/gstdice.c
+++ b/gst/effectv/gstdice.c
@@ -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;
}