From b367518755b3a195c633a24f814acb4906747293 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 7 Nov 2016 12:16:01 -0600 Subject: [PATCH] FS-9705 #resolve [Files using prebuffer do not play properly when seeking back to the beginning once the file is done playing] --- src/switch_core_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_core_file.c b/src/switch_core_file.c index ac90763272..46ee5390b9 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; }