]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5930 --resolve
authorKen Rice <krice@freeswitch.org>
Sat, 2 Nov 2013 22:34:16 +0000 (17:34 -0500)
committerKen Rice <krice@freeswitch.org>
Sat, 2 Nov 2013 22:34:16 +0000 (17:34 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index a96d01c4c3279733ae5033f34f82db8288fb1713..c94958ea8756dfc107b23bc24f3483b6dd1a2942 100644 (file)
@@ -324,7 +324,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
                                                                                                  cp->func, cp->file, cp->line, bused, (long)source->samples);
                                                                switch_buffer_zero(cp->audio_buffer);
                                                        } else {
-                                                               switch_buffer_write(cp->audio_buffer, dist_buf, bused);
+                                                               switch_buffer_write(cp->audio_buffer, dist_buf, used);
                                                        }
                                                        switch_mutex_unlock(cp->audio_mutex);
                                                }