tweak the audio & video seeking code