mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-29 05:30:14 +00:00
FSCORE-639
This commit is contained in:
parent
04dbc7bc8e
commit
9fbe3ea2e1
@ -2107,14 +2107,21 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||||||
&rb);
|
&rb);
|
||||||
|
|
||||||
if ((rstatus != SWITCH_STATUS_SUCCESS && rstatus != SWITCH_STATUS_BREAK) || rb < 0) {
|
if ((rstatus != SWITCH_STATUS_SUCCESS && rstatus != SWITCH_STATUS_BREAK) || rb < 0) {
|
||||||
|
if (rtp_session->recv_msg_idx) {
|
||||||
|
/* Handle the data we have queued up */
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
*bytes = rb;
|
*bytes = rb;
|
||||||
return rstatus;
|
return rstatus;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!rb) break;
|
if (!rb) break;
|
||||||
|
|
||||||
rtp_session->recv_msg_array[rtp_session->recv_msg_idx].bytes = rb;
|
rtp_session->recv_msg_array[rtp_session->recv_msg_idx].bytes = rb;
|
||||||
rtp_session->recv_msg_idx++;
|
rtp_session->recv_msg_idx++;
|
||||||
|
|
||||||
|
switch_cond_next(); /* Relax just a bit */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!*bytes && rtp_session->recv_msg_idx) goto top;
|
if (!*bytes && rtp_session->recv_msg_idx) goto top;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user