From f881917d2f273a39b79597f624b99bf88dfffbf2 Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Sun, 18 Sep 2016 21:09:57 -0700 Subject: [PATCH] Fix a bug that buffer_frame_size is not properly initialized --- src/output/plugins/OSXOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index 68bde5373..11b688262 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -710,7 +710,7 @@ osx_output_open(AudioOutput *ao, AudioFormat &audio_format, return false; } - UInt32 buffer_frame_size; + UInt32 buffer_frame_size = 1; status = osx_output_set_buffer_size(od->au, od->asbd, &buffer_frame_size); if (status != noErr) { osx_os_status_to_cstring(status, errormsg, sizeof(errormsg));