]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10720: [core] exit playback when eof reached and speed is set #resolve
authorhari <harangozo.laszlo@tct.hu>
Wed, 18 Oct 2017 16:00:37 +0000 (18:00 +0200)
committerhari <harangozo.laszlo@tct.hu>
Wed, 18 Oct 2017 16:00:37 +0000 (18:00 +0200)
src/switch_ivr_play_say.c

index 6a9298d2d4c2fce12314bd8282edae44bf377ae2..748ddd0c05e7b15d583a322799669befca8e99d7 100644 (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;
                                        }
                                }