waveformsink: use 'guint8' instead of 'byte' to fix compilation with MSVC8

We need a cast here for pointer arithmetic to work correctly, but some
MSVC versions don't seem to like 'byte', so use guint8 here. Hopefully
fixes #585361.
This commit is contained in:
Tim-Philipp Müller 2009-06-25 18:51:12 +01:00
parent 5d256c201f
commit 2e13b85a01

View file

@ -500,7 +500,7 @@ gst_waveform_sink_write (GstAudioSink * asink, gpointer data, guint length)
memcpy (waveheader->lpData + waveheader->dwUser, data, bytes_to_write);
waveheader->dwUser += bytes_to_write;
remaining_length -= bytes_to_write;
data = (byte *) data + bytes_to_write;
data = (guint8 *) data + bytes_to_write;
if (waveheader->dwUser == wfsink->buffer_size) {
/* we have filled a buffer, let's prepare it and next write it to the device */