mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
audio: Let capture_callback handler use const buffer argument
The buffer is the captured input to pass to backends. As we should not modify it, mark the argument const. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200505132603.8575-3-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e709d2ac47
commit
57a878ed4f
3 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ static void wav_destroy (void *opaque)
|
|||
g_free (wav->path);
|
||||
}
|
||||
|
||||
static void wav_capture (void *opaque, void *buf, int size)
|
||||
static void wav_capture(void *opaque, const void *buf, int size)
|
||||
{
|
||||
WAVState *wav = opaque;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue