@Override
 protected void flushCodec() throws ExoPlaybackException {
   super.flushCodec();
   clearTimestamps();
 }
 @Override
 protected void releaseCodec() {
   super.releaseCodec();
   clearTimestamps();
 }