dicetv: Use guint8 instead of char (which can be signed or unsigned)
This commit is contained in:
parent
aaf8c8769d
commit
46ceaf957a
@ -55,7 +55,7 @@ struct _GstDiceTV
|
|||||||
GstVideoFilter videofilter;
|
GstVideoFilter videofilter;
|
||||||
|
|
||||||
gint width, height;
|
gint width, height;
|
||||||
gchar *dicemap;
|
guint8 *dicemap;
|
||||||
|
|
||||||
gint g_cube_bits;
|
gint g_cube_bits;
|
||||||
gint g_cube_size;
|
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) &&
|
if (gst_structure_get_int (structure, "width", &filter->width) &&
|
||||||
gst_structure_get_int (structure, "height", &filter->height)) {
|
gst_structure_get_int (structure, "height", &filter->height)) {
|
||||||
g_free (filter->dicemap);
|
g_free (filter->dicemap);
|
||||||
filter->dicemap =
|
filter->dicemap = (guint8 *) g_malloc (filter->height * filter->width);
|
||||||
(gchar *) g_malloc (filter->height * filter->width * sizeof (gchar));
|
|
||||||
gst_dicetv_create_map (filter);
|
gst_dicetv_create_map (filter);
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user