From b1337495fbf5333a841600a92d8f168a5165b184 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Thu, 8 May 2014 12:03:28 -0400 Subject: [PATCH] CID: 1211943 mod_rayo - removed dead code when changing output speed --- src/mod/event_handlers/mod_rayo/rayo_output_component.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/mod/event_handlers/mod_rayo/rayo_output_component.c b/src/mod/event_handlers/mod_rayo/rayo_output_component.c index 4a3ee322a8..1a386ce189 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_output_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_output_component.c @@ -819,7 +819,6 @@ static switch_status_t fileman_file_read(switch_file_handle_t *handle, void *dat for (;;) { int do_speed = 1; - int last_speed = -1; size_t read_bytes = 0; if (switch_test_flag(handle, SWITCH_FILE_PAUSE)) { @@ -912,11 +911,6 @@ static switch_status_t fileman_file_read(switch_file_handle_t *handle, void *dat handle->speed = -2; } - if (fh->audio_buffer && last_speed > -1 && last_speed != handle->speed) { - /* speed has changed, flush the buffer */ - switch_buffer_zero(fh->sp_audio_buffer); - } - if (switch_test_flag(fh, SWITCH_FILE_SEEK)) { /* file position has changed flush the buffer */ switch_buffer_zero(fh->audio_buffer); @@ -964,7 +958,6 @@ static switch_status_t fileman_file_read(switch_file_handle_t *handle, void *dat switch_buffer_write(fh->sp_audio_buffer, bp, r_len * 2); wrote_len += r_len; } - last_speed = handle->speed; continue; } -- 2.47.2