Tiny optimization in chan_iax2.c that the compiler would

probably take care of, but better that we do it


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-03-25 18:10:52 +00:00
parent 638684636c
commit 82bf2663e3

View File

@@ -2751,12 +2751,10 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in
/* Acks' don't get retried */
if ((f->frametype == AST_FRAME_IAX) && (f->subclass == IAX_COMMAND_ACK))
fr->retries = -1;
if (f->frametype == AST_FRAME_VOICE) {
else if (f->frametype == AST_FRAME_VOICE)
pvt->svoiceformat = f->subclass;
}
if (f->frametype == AST_FRAME_VIDEO) {
else if (f->frametype == AST_FRAME_VIDEO)
pvt->svideoformat = f->subclass & ~0x1;
}
if (now) {
res = send_packet(fr);
} else