From 45fdd28ad2eb0eb0457ad440b7023243ba9db815 Mon Sep 17 00:00:00 2001 From: schlaile Date: Tue, 22 Jul 2008 20:46:16 +0200 Subject: [PATCH] made lcr_read read frames in 160 bytes packets in rebuffer mode --- chan_lcr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chan_lcr.c b/chan_lcr.c index dc7ebed..2790cf4 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -1943,7 +1943,11 @@ static struct ast_frame *lcr_read(struct ast_channel *ast) return NULL; } if (call->pipe[0] > -1) { - len = read(call->pipe[0], call->read_buff, sizeof(call->read_buff)); + if (call->rebuffer) { + len = read(call->pipe[0], call->read_buff, 160); + } else { + len = read(call->pipe[0], call->read_buff, sizeof(call->read_buff)); + } if (len <= 0) { close(call->pipe[0]); call->pipe[0] = -1; -- 2.13.6