The demuxer already has access to the duration, since it is the one that emitted it in the first place.