]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9705 regression
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Nov 2016 00:39:31 +0000 (18:39 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Nov 2016 00:39:31 +0000 (18:39 -0600)
src/switch_core_file.c

index a1eea24ab34bc28d11135622ed3e7dac707b1244..84fb607398570be1b61ada3462d932fd0ddea3ac 100644 (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);