public void setStream(TrackInfo tInfo, boolean useAsMaster) {
      this.tInfo = tInfo;
      this.useAsMaster = useAsMaster;
      if (pbs != null) pbs.setTransferHandler(null);
      pbs = tInfo.pbs;

      // Sync up all media at the beginning of the file.
      if (masterTime > 0) timeStamp = masterTime;
      lastTS = 0;

      pbs.setTransferHandler(this);
    }