I found out that Skype somehow stole the access to the webcam. When I uninstalled Skype, the webcam started working again. But I can still only access it through Movie Maker, which seems weird to me.