From: Anthony Minessale Date: Tue, 15 Nov 2016 00:39:31 +0000 (-0600) Subject: FS-9705 regression X-Git-Tag: v1.8.0~1068 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407c1b20ddb3006359a0e197e1ffb069cc2c640a;p=thirdparty%2Ffreeswitch.git FS-9705 regression --- diff --git a/src/switch_core_file.c b/src/switch_core_file.c index a1eea24ab3..84fb607398 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -399,6 +399,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh, if (switch_test_flag(fh, SWITCH_FILE_DONE)) { switch_clear_flag_locked(fh, SWITCH_FILE_DONE); + switch_clear_flag_locked(fh, SWITCH_FILE_BUFFER_DONE); *len = 0; return SWITCH_STATUS_FALSE; } @@ -407,7 +408,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh, more: - if (fh->pre_buffer && switch_buffer_inuse(fh->pre_buffer)) { + if (fh->pre_buffer) { switch_size_t rlen; int asis = switch_test_flag(fh, SWITCH_FILE_NATIVE);