Err. That is wrong. It should not touch pts. That will be handled by getplayingpts byitself when GetDelay() becomes zero.