mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 09:46:22 +00:00
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:
@@ -2751,12 +2751,10 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in
|
|||||||
/* Acks' don't get retried */
|
/* Acks' don't get retried */
|
||||||
if ((f->frametype == AST_FRAME_IAX) && (f->subclass == IAX_COMMAND_ACK))
|
if ((f->frametype == AST_FRAME_IAX) && (f->subclass == IAX_COMMAND_ACK))
|
||||||
fr->retries = -1;
|
fr->retries = -1;
|
||||||
if (f->frametype == AST_FRAME_VOICE) {
|
else if (f->frametype == AST_FRAME_VOICE)
|
||||||
pvt->svoiceformat = f->subclass;
|
pvt->svoiceformat = f->subclass;
|
||||||
}
|
else if (f->frametype == AST_FRAME_VIDEO)
|
||||||
if (f->frametype == AST_FRAME_VIDEO) {
|
|
||||||
pvt->svideoformat = f->subclass & ~0x1;
|
pvt->svideoformat = f->subclass & ~0x1;
|
||||||
}
|
|
||||||
if (now) {
|
if (now) {
|
||||||
res = send_packet(fr);
|
res = send_packet(fr);
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user