cudacodec::createVideoReader lose many frames when i read multi rtsp streams by using multi thread

you can understand it as this, i use videoReader->nextFrame(g_frame) to get next frame every 4ms, and i found that i get 10 same pictures in 40ms. but i want to get the new frame, if it is the same frame as before, i do not want to read it .how can i do it ?