What will happen if a new input device is connected in the process of recording?

In this case, the output image will be switched to the image from the new connected device and the capture box will start recording the new video.