summaryrefslogtreecommitdiff
path: root/sys/waveform
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-25 18:51:12 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-25 18:54:06 +0100
commit2e13b85a016330729a3c6ac39d006d06fc1db996 (patch)
tree59a482ac2f1086d40c5d38b0e1d5eeca922c779a /sys/waveform
parent5d256c201f82539de9ef7089078b340664ddd9e7 (diff)
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.
Diffstat (limited to 'sys/waveform')
-rw-r--r--sys/waveform/gstwaveformsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/waveform/gstwaveformsink.c b/sys/waveform/gstwaveformsink.c
index 19eedc91..35a1fbc4 100644
--- a/sys/waveform/gstwaveformsink.c
+++ b/sys/waveform/gstwaveformsink.c
@@ -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 */