https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r66437 | file | 2007-05-29 12:44:34 -0400 (Tue, 29 May 2007) | 2 lines
Handle cases where a frame may have no data. (issue #9519 reported by dmb)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66438
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
ast_smoother_feed(rtp->smoother, _f);
}
- while ((f = ast_smoother_read(rtp->smoother)))
+ while ((f = ast_smoother_read(rtp->smoother)) && (f->data))
ast_rtp_raw_write(rtp, f, codec);
} else {
/* Don't buffer outgoing frames; send them one-per-packet: */
f = ast_frdup(_f); /*! \bug XXX this might never be free'd. Why do we do this? */
else
f = _f;
- ast_rtp_raw_write(rtp, f, codec);
+ if (f->data)
+ ast_rtp_raw_write(rtp, f, codec);
if (f != _f)
ast_frfree(f);
}