mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-04 15:19:57 +00:00
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:
parent
5d256c201f
commit
2e13b85a01
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue