[asterisk-commits] russell: branch russell/jack r94779 - /team/russell/jack/apps/app_jack.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 26 09:38:24 CST 2007
Author: russell
Date: Wed Dec 26 09:38:23 2007
New Revision: 94779
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94779
Log:
fix some output buffer handling
Modified:
team/russell/jack/apps/app_jack.c
Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=94779&r1=94778&r2=94779
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Wed Dec 26 09:38:23 2007
@@ -198,7 +198,7 @@
jack_data->input_resample_factor,
&in_buf[total_in_buf_used], nframes - total_in_buf_used,
0, &in_buf_used,
- &f_buf[out_buf_used], ARRAY_LEN(f_buf) - out_buf_used);
+ &f_buf[total_out_buf_used], ARRAY_LEN(f_buf) - total_out_buf_used);
if (out_buf_used < 0)
break;
@@ -414,7 +414,7 @@
jack_data->output_resample_factor,
&in_buf[total_in_buf_used], ARRAY_LEN(in_buf) - total_in_buf_used,
0, &in_buf_used,
- &f_buf[out_buf_used], ARRAY_LEN(f_buf) - total_out_buf_used);
+ &f_buf[total_out_buf_used], ARRAY_LEN(f_buf) - total_out_buf_used);
if (out_buf_used < 0)
break;
@@ -422,7 +422,7 @@
total_out_buf_used += out_buf_used;
total_in_buf_used += in_buf_used;
- if (out_buf_used == ARRAY_LEN(f_buf)) {
+ if (total_out_buf_used == ARRAY_LEN(f_buf)) {
ast_log(LOG_ERROR, "Output buffer filled ... need to increase its size\n");
break;
}
More information about the asterisk-commits
mailing list