From: Seven Du Date: Tue, 7 Apr 2015 16:12:47 +0000 (+0800) Subject: FS-7512: slow down in block mod X-Git-Tag: v1.6.2~614^2~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c56410d7f3eb45bc8d6391c8dbffab486e5a7ef;p=thirdparty%2Ffreeswitch.git FS-7512: slow down in block mod --- 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; }