mgcp: Patch and Count _after_ the transcoding

When going from a ptime of 10 to 20 a lot of alignment errors
are reported. In fact the alignment check should be done before
and after the transcoding. As this is not possible right now
only do it _after_ the patching.
This commit is contained in:
Holger Hans Peter Freyther
2014-07-02 21:54:14 +02:00
parent 77ceaaf7f5
commit 1fc1ed23b2

View File

@@ -582,13 +582,13 @@ int mgcp_send(struct mgcp_endpoint *endp, int dest, int is_rtp,
int cont;
int nbytes = 0;
int len = rc;
mgcp_patch_and_count(endp, rtp_state, rtp_end, addr, buf, len);
do {
cont = endp->cfg->rtp_processing_cb(endp, rtp_end,
buf, &len, RTP_BUF_SIZE);
if (cont < 0)
break;
mgcp_patch_and_count(endp, rtp_state, rtp_end, addr, buf, len);
forward_data(rtp_end->rtp.fd, &endp->taps[tap_idx],
buf, len);
rc = mgcp_udp_send(rtp_end->rtp.fd,