Fix #628 Unload Input Source Problem

Now the user can load and unload video/audio input sources and record without closing the program.