AMCap: Unable to add the video capture source to the filter graph

I have a Logitech C600 webcam running on my Windows 7 PC. It was working fine before but since yesterday I was having some issues when I enable preview. I am getting a black screen only following with an error message as shown below:

AMCap
Unable to add the video capture source to the filter graph.
Class not registered
[0x80040154 / 10683]
OK
I even tried it on Skype but it only detects the speakers and its microphone. The video was not detected and I can only see black screen. How can I resolve this issue?
