src/io/sink_apple_audio.c: set s->samplerate before using it
authorPaul Brossier <piem@piem.org>
Sun, 10 Feb 2013 05:54:09 +0000 (00:54 -0500)
committerPaul Brossier <piem@piem.org>
Sun, 10 Feb 2013 05:54:09 +0000 (00:54 -0500)
src/io/sink_apple_audio.c

index 9269feaa682e5b8914efa87b0f10e4319d80192a..5ae19d1e96554b48c2f3eac7a13a5b6ec747472d 100644 (file)
@@ -52,7 +52,7 @@ struct _aubio_sink_apple_audio_t {
 
 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;