Fixed deadlock when no data are received in rtp.