Rtsp-stream pipeline is blocked in sometimes

Hi,
There is a sample which is close to your usecase. Please check