waveformsink: use 'guint8' instead of 'byte' to fix compilation with MSVC8
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 25 Jun 2009 17:51:12 +0000 (18:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 25 Jun 2009 17:54:06 +0000 (18:54 +0100)
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.

sys/waveform/gstwaveformsink.c

index 19eedc9..35a1fbc 100644 (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 */