shithub: aubio

Download patch

ref: 7b4ea49b6759badcc78430a5fd18cd86e9ccd348
parent: 4db8eab0280562c3f520be7f3796c4e8cd61b43d
author: Paul Brossier <piem@piem.org>
date: Sat Feb 9 19:54:09 EST 2013

src/io/sink_apple_audio.c: set s->samplerate before using it

--- a/src/io/sink_apple_audio.c
+++ b/src/io/sink_apple_audio.c
@@ -52,7 +52,7 @@
 
 aubio_sink_apple_audio_t * new_aubio_sink_apple_audio(char_t * uri, uint_t samplerate) {
   aubio_sink_apple_audio_t * s = AUBIO_NEW(aubio_sink_apple_audio_t);
-  s->samplerate;
+  s->samplerate = samplerate;
   s->channels = 1;
   s->path = uri;
   s->max_frames = MAX_SIZE;