FS-7512: slow down in block mod

This commit is contained in:
Seven Du 2015-04-08 00:12:47 +08:00 committed by Michael Jerris
parent 74cff6a744
commit 8c56410d7f
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}