aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audio_legacy.c')
-rw-r--r--audio/audio_legacy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audio_legacy.c b/audio/audio_legacy.c
index ffdbd0bcce..0fe827b057 100644
--- a/audio/audio_legacy.c
+++ b/audio/audio_legacy.c
@@ -286,7 +286,8 @@ static void handle_sdl(Audiodev *dev)
{
/* SDL is output only */
get_samples_to_usecs("QEMU_SDL_SAMPLES", &dev->u.sdl.out->buffer_length,
- &dev->u.sdl.out->has_buffer_length, dev->u.sdl.out);
+ &dev->u.sdl.out->has_buffer_length,
+ qapi_AudiodevSdlPerDirectionOptions_base(dev->u.sdl.out));
}
/* wav */