Commit 2e13b85a authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent 5d256c20
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment