}
if ((tmp = switch_channel_get_variable(session->channel, "rtp_use_pt"))) {
- a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = smh->payload_space = (switch_payload_t)atoi(tmp);
+ a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = (switch_payload_t)(smh->payload_space = atoi(tmp));
}
if ((tmp = switch_channel_get_variable(session->channel, "rtp_audio_recv_pt"))) {
debug |= DBG_IN;
}
- if (debug) i->debug = debug;
+ if (debug) i->debug = (uint8_t)debug;
else i->debug = 3;
i->name = strdup(name);
qlen = i->qlen + incr;
- if (i->max_qlen && qlen > i->max_qlen) {
+ if (i->max_qlen && qlen > (int32_t)i->max_qlen) {
if (i->qlen < i->max_qlen) {
qlen = i->max_qlen;
} else {
stfu_n_resize_aqueue(&i->b_queue, qlen);
s = stfu_n_resize_aqueue(&i->c_queue, qlen);
- if (qlen > i->most_qlen) {
+ if (qlen > (int32_t)i->most_qlen) {
i->most_qlen = qlen;
}