Don't do void pointer arithmetic.

This commit is contained in:
Jan Schmidt 2009-01-30 17:16:39 +00:00
parent 2b68886ea1
commit 6b1e08f277

View file

@ -901,7 +901,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
collect_data, insize, indata);
/* clear if we are only going to fill a partial buffer */
if (G_UNLIKELY (outsize > insize))
memset (outdata + insize, 0, outsize - insize);
memset ((guint8 *) outdata + insize, 0, outsize - insize);
/* and copy the data into it */
memcpy (outdata, indata, insize);
empty = FALSE;