Merge mic's minor patchlet (bug #2092)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-07-19 15:52:57 +00:00
parent eb80683222
commit ed42d3074d
3 changed files with 6 additions and 0 deletions

View File

@@ -136,6 +136,9 @@ struct ast_frame *ast_smoother_read(struct ast_smoother *s)
int len;
/* IF we have an optimization frame, send it */
if (s->opt) {
if (s->opt->offset < AST_FRIENDLY_OFFSET)
ast_log(LOG_WARNING, "Returning a frame of inappropriate offset (%d).",
s->opt->offset);
opt = s->opt;
s->opt = NULL;
return opt;