Schedule Decoded Frames based on PTS in AppDecGL

I have made the AppDecGL example to work for a live rtsp video stream. However I observe that the playback is not smooth and observe judder, and the reason is that the decoded frames are not being rendered in proper order. Is there any mechanism within NvDecoder to re-order frames based on PTS?

Thanks,
Anand.