Duration of Layout to be Determined by Duration of Video

When a layout contains a video the layout duration in the playlist should be determined by the video involved - now, if you change the video the layout duration in the playlist always has to be changed manually - very annoying with constantly changing durations of commercials, info-videos etc.