FS-9705 regression

This commit is contained in:
Anthony Minessale 2016-11-14 18:39:31 -06:00
parent 27eb116f03
commit 407c1b20dd
1 changed files with 2 additions and 1 deletions

View File

@ -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);