Fix issue with duration detection on audio streams