mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
wildmididec: explicitly cast buffer data to int8 in _decode()
Fixes compiler warning introduced in commit ff32a4297
:
gstwildmididec.c:637:47: error: pointer targets in passing argument 2 of ‘WildMidi_GetOutput’ differ in signedness
WildMidi_GetOutput (wildmidi_dec->song, (char *) (info.data), info.size);
^
wildmidi_lib.h:106:15: note: expected ‘int8_t * {aka signed char *}’ but argument is of type ‘char *’
WM_SYMBOL int WildMidi_GetOutput (midi *handle, int8_t *buffer, uint32_t size);
https://bugzilla.gnome.org/show_bug.cgi?id=768576
This commit is contained in:
parent
e7a5fdfde4
commit
bbb89dd34c
1 changed files with 2 additions and 1 deletions
|
@ -634,7 +634,8 @@ gst_wildmidi_dec_decode (GstNonstreamAudioDecoder * dec, GstBuffer ** buffer,
|
|||
/* The actual decoding */
|
||||
gst_buffer_map (outbuf, &info, GST_MAP_WRITE);
|
||||
decoded_size_in_bytes =
|
||||
WildMidi_GetOutput (wildmidi_dec->song, (char *) (info.data), info.size);
|
||||
WildMidi_GetOutput (wildmidi_dec->song, (int8_t *) (info.data),
|
||||
info.size);
|
||||
gst_buffer_unmap (outbuf, &info);
|
||||
|
||||
if (decoded_size_in_bytes == 0) {
|
||||
|
|
Loading…
Reference in a new issue