FS-11785 [mod_spandsp] fix dead assignments
This commit is contained in:
parent
517985473a
commit
8ac4ddd5bb
|
@ -473,7 +473,6 @@ void mod_spandsp_indicate_data(switch_core_session_t *session, switch_bool_t sel
|
||||||
|
|
||||||
if (locked) {
|
if (locked) {
|
||||||
switch_core_session_rwunlock(target_session);
|
switch_core_session_rwunlock(target_session);
|
||||||
locked = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,6 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
|
||||||
switch_resample_process(pvt->resampler, dp, (int) datalen / 2 / 1);
|
switch_resample_process(pvt->resampler, dp, (int) datalen / 2 / 1);
|
||||||
memcpy(dp, pvt->resampler->to, pvt->resampler->to_len * 2 * 1);
|
memcpy(dp, pvt->resampler->to, pvt->resampler->to_len * 2 * 1);
|
||||||
samples = pvt->resampler->to_len;
|
samples = pvt->resampler->to_len;
|
||||||
datalen = pvt->resampler->to_len * 2 * 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dtmf_rx(pvt->dtmf_detect, dp, samples);
|
dtmf_rx(pvt->dtmf_detect, dp, samples);
|
||||||
|
|
|
@ -2061,12 +2061,10 @@ static switch_status_t t38_gateway_on_consume_media(switch_core_session_t *sessi
|
||||||
|
|
||||||
if (read_fd != FAX_INVALID_SOCKET) {
|
if (read_fd != FAX_INVALID_SOCKET) {
|
||||||
close(read_fd);
|
close(read_fd);
|
||||||
read_fd = FAX_INVALID_SOCKET;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write_fd != FAX_INVALID_SOCKET) {
|
if (write_fd != FAX_INVALID_SOCKET) {
|
||||||
close(write_fd);
|
close(write_fd);
|
||||||
write_fd = FAX_INVALID_SOCKET;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue