fixed wrong pointer check with rtp sync