When a change of venue is allowed, the court shall recognize the witnesses on the part of the state to appear before the court in which the prisoner is to be tried.