projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a114e74
)
made lcr_read read frames in 160 bytes packets in rebuffer mode
author
schlaile
<root@asterisk.schlaile.de>
Tue, 22 Jul 2008 18:46:16 +0000
(20:46 +0200)
committer
root
<root@asterisk.schlaile.de>
Tue, 22 Jul 2008 18:46:16 +0000
(20:46 +0200)
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
dc7ebed
..
2790cf4
100644
(file)
--- 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;