The multi-channel video stream decoding will be stuck, and the delay is too large

Use NVIDIA’s official code to package into a library and analyze multiple video streams. The video will get stuck. Through breakpoint analysis, it is found that the function delay timeout occurs in the function “eglswapbuffers (egl_disaplay, egl_surface)”. When feeding data, it is found that “dqbuffer” will return an error. What direction should I check the problem?