mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
FS-7696
This commit is contained in:
1 parent
f953514b41
commit
ccaf29254e
1 file changed
+3
@@ -352,6 +352,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
|||||||
is_open = 0;
|
is_open = 0;
|
||||||
|
|
||||||
switch_core_file_close(use_fh);
|
switch_core_file_close(use_fh);
|
||||||
|
flush_video_queue(source->video_q);
|
||||||
if (use_fh == &source->chime_fh) {
|
if (use_fh == &source->chime_fh) {
|
||||||
source->chime_counter = source->rate * source->chime_freq;
|
source->chime_counter = source->rate * source->chime_freq;
|
||||||
use_fh = &fh;
|
use_fh = &fh;
|
||||||
@@ -383,6 +384,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
|||||||
|
|
||||||
if (switch_core_file_read(use_fh, abuf, &olen) != SWITCH_STATUS_SUCCESS || !olen) {
|
if (switch_core_file_read(use_fh, abuf, &olen) != SWITCH_STATUS_SUCCESS || !olen) {
|
||||||
switch_core_file_close(use_fh);
|
switch_core_file_close(use_fh);
|
||||||
|
flush_video_queue(source->video_q);
|
||||||
|
|
||||||
if (use_fh == &source->chime_fh) {
|
if (use_fh == &source->chime_fh) {
|
||||||
source->chime_counter = source->rate * source->chime_freq;
|
source->chime_counter = source->rate * source->chime_freq;
|
||||||
@@ -394,6 +396,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
|||||||
if (source->chime_max_counter >= source->chime_max) {
|
if (source->chime_max_counter >= source->chime_max) {
|
||||||
source->chime_max_counter = 0;
|
source->chime_max_counter = 0;
|
||||||
switch_core_file_close(use_fh);
|
switch_core_file_close(use_fh);
|
||||||
|
flush_video_queue(source->video_q);
|
||||||
source->chime_counter = source->rate * source->chime_freq;
|
source->chime_counter = source->rate * source->chime_freq;
|
||||||
use_fh = &fh;
|
use_fh = &fh;
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|||||||
Reference in new issue
Block a user