From 8c56410d7f3eb45bc8d6391c8dbffab486e5a7ef Mon Sep 17 00:00:00 2001 From: Seven Du Date: Wed, 8 Apr 2015 00:12:47 +0800 Subject: [PATCH] FS-7512: slow down in block mod --- src/mod/formats/mod_png/mod_png.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/formats/mod_png/mod_png.c b/src/mod/formats/mod_png/mod_png.c index 8720de0226..5e3eeb0138 100644 --- a/src/mod/formats/mod_png/mod_png.c +++ b/src/mod/formats/mod_png/mod_png.c @@ -163,6 +163,9 @@ static switch_status_t png_file_read_video(switch_file_handle_t *handle, switch_ frame->img = dup; context->sent++; } else { + if ((flags && SVR_BLOCK)) { + switch_yield(5000); + } return SWITCH_STATUS_BREAK; }