Ensure the duration is greater than zero before adjusting the seek time