FS-10720: [core] exit playback when eof reached and speed is set #resolve

This commit is contained in:
hari 2017-10-18 18:00:37 +02:00
parent 15455f7060
commit 6e661cc2a3
1 changed files with 2 additions and 2 deletions

View File

@ -1683,9 +1683,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
} else if (fh->sp_audio_buffer && (eof || (switch_buffer_inuse(fh->sp_audio_buffer) > (switch_size_t) (framelen)))) {
if (!(bread = switch_buffer_read(fh->sp_audio_buffer, abuf, framelen))) {
if (eof) {
continue;
} else {
break;
} else {
continue;
}
}