]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_png] Fix unexpected png video blocked read
authorHenrique <hdiniz@users.noreply.github.com>
Tue, 23 May 2023 23:14:22 +0000 (20:14 -0300)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 23:14:22 +0000 (02:14 +0300)
src/mod/formats/mod_png/mod_png.c

index 36e38e9c83e6cd4e754f3685ff7cb9a543499fb4..fbbe6aaf2058ec76cfa86c67d39563523210b45c 100644 (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) {