Skip to content
Snippets Groups Projects
Commit d851db3c authored by Mark Spencer's avatar Mark Spencer
Browse files

Small fixes from bkw

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a640df56
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ static int ilbc_write(struct ast_filestream *fs, struct ast_frame *f) ...@@ -157,7 +157,7 @@ static int ilbc_write(struct ast_filestream *fs, struct ast_frame *f)
return -1; return -1;
} }
if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) { if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) {
ast_log(LOG_WARNING, "Bad write (%d/23): %s\n", res, strerror(errno)); ast_log(LOG_WARNING, "Bad write (%d/50): %s\n", res, strerror(errno));
return -1; return -1;
} }
return 0; return 0;
...@@ -176,7 +176,7 @@ static int ilbc_seek(struct ast_filestream *fs, long sample_offset, int whence) ...@@ -176,7 +176,7 @@ static int ilbc_seek(struct ast_filestream *fs, long sample_offset, int whence)
cur = lseek(fs->fd, 0, SEEK_CUR); cur = lseek(fs->fd, 0, SEEK_CUR);
max = lseek(fs->fd, 0, SEEK_END); max = lseek(fs->fd, 0, SEEK_END);
bytes = 36 * (sample_offset / 240); bytes = 50 * (sample_offset / 240);
if (whence == SEEK_SET) if (whence == SEEK_SET)
offset = bytes; offset = bytes;
else if (whence == SEEK_CUR || whence == SEEK_FORCECUR) else if (whence == SEEK_CUR || whence == SEEK_FORCECUR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment