mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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:
3
frame.c
3
frame.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user