diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-02-19 00:07:34 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-02-19 00:07:34 +0000 |
| commit | 159b6b5ea81a1288f8b067bb6c3be326a1cac7d3 (patch) | |
| tree | 6df9698a99a8c9ee25668b03f8035a853155999f /net/asterisk/files/patch-formats::format_g729.c | |
| parent | Fix a typo. (diff) | |
- Update to 0.7.2;
- fix problem with h323 channel module loading reported by several users.
Diffstat (limited to 'net/asterisk/files/patch-formats::format_g729.c')
| -rw-r--r-- | net/asterisk/files/patch-formats::format_g729.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/net/asterisk/files/patch-formats::format_g729.c b/net/asterisk/files/patch-formats::format_g729.c index a255fc351e71..a144d1b0f6bf 100644 --- a/net/asterisk/files/patch-formats::format_g729.c +++ b/net/asterisk/files/patch-formats::format_g729.c @@ -1,8 +1,8 @@ $FreeBSD$ ---- formats/format_g729.c.orig Mon Sep 8 19:48:07 2003 -+++ formats/format_g729.c Fri Jan 30 01:47:34 2004 +--- formats/format_g729.c.orig Wed Jan 28 23:32:48 2004 ++++ formats/format_g729.c Thu Feb 19 01:03:30 2004 @@ -45,7 +45,7 @@ struct ast_frame fr; /* Frame information */ char waste[AST_FRIENDLY_OFFSET]; /* Buffer for sending frames, etc */ @@ -27,22 +27,6 @@ $FreeBSD$ if (res) ast_log(LOG_WARNING, "Short read (%d) (%s)!\n", res, strerror(errno)); return NULL; -@@ -150,12 +150,12 @@ - ast_log(LOG_WARNING, "Asked to write non-G729 frame (%d)!\n", f->subclass); - return -1; - } -- if (f->datalen % 20) { -- ast_log(LOG_WARNING, "Invalid data length, %d, should be multiple of 20\n", f->datalen); -+ if (f->datalen % 10) { -+ ast_log(LOG_WARNING, "Invalid data length, %d, should be multiple of 10\n", f->datalen); - return -1; - } - if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) { -- ast_log(LOG_WARNING, "Bad write (%d/20): %s\n", res, strerror(errno)); -+ ast_log(LOG_WARNING, "Bad write (%d/10): %s\n", res, strerror(errno)); - return -1; - } - return 0; @@ -174,7 +174,7 @@ cur = lseek(fs->fd, 0, SEEK_CUR); max = lseek(fs->fd, 0, SEEK_END); |
