Had the same problem while using AutoBoy BlackBox, it's an app for video recording while driving. First the app gave a message that I have an error with the camera and cannot use it. I tried opening the camera app and gave the camera error.
I fixed it by killing AutoBoy app. Check to see what apps you have open that might be using the camera.