[mod_png] Fix unexpected png video blocked read

This commit is contained in:
Henrique 2023-05-23 20:14:22 -03:00 committed by GitHub
parent 8aa6a8a904
commit a4af2ea7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ static switch_status_t png_file_read_video(switch_file_handle_t *handle, switch_
switch_goto_status(SWITCH_STATUS_FALSE, end);
}
if ((flags && SVR_BLOCK)) {
if ((flags & SVR_BLOCK)) {
switch_yield(33000);
have_frame = 1;
} else if ((context->reads++ % 20) == 0) {