]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11785 [mod_spandsp] fix dead assignments
authorChris Rienzo <chris@signalwire.com>
Tue, 23 Apr 2019 03:01:53 +0000 (03:01 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 17:49:23 +0000 (21:49 +0400)
src/mod/applications/mod_spandsp/mod_spandsp.c
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index c8802ed15da0465508d5f323327dcb64a52517e2..f674d14811e57adddfeb47e972e1efec9419ce5f 100644 (file)
@@ -473,7 +473,6 @@ void mod_spandsp_indicate_data(switch_core_session_t *session, switch_bool_t sel
 
                if (locked) {
                        switch_core_session_rwunlock(target_session);
-                       locked = 0;
                }
        }
 }
index 6695f27a768cf1163ace128bd3afce99e312582d..9a43271c9937cd827e6fbc9d157c7f7f9626a0df 100644 (file)
@@ -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);
                                memcpy(dp, pvt->resampler->to, pvt->resampler->to_len * 2 * 1);
                                samples = pvt->resampler->to_len;
-                               datalen = pvt->resampler->to_len * 2 * 1;
                        }
 
                        dtmf_rx(pvt->dtmf_detect, dp, samples);
index 2931f7414ca57dbd202ef5a3dd4cc2442e1e0c0f..d0f60326a4ef890f4a874c1312f9413fc133acc8 100644 (file)
@@ -2061,12 +2061,10 @@ static switch_status_t t38_gateway_on_consume_media(switch_core_session_t *sessi
 
        if (read_fd != FAX_INVALID_SOCKET) {
                close(read_fd);
-               read_fd = FAX_INVALID_SOCKET;
        }
 
        if (write_fd != FAX_INVALID_SOCKET) {
                close(write_fd);
-               write_fd = FAX_INVALID_SOCKET;
        }