How about just opening the camera using :
cv:VideoCapture videoCapture(0);
That should be enough to open the camera and use it. All of the other stuff is just extra steps that could go wrong.
There's a simple example at
http://docs.opencv.org/2.4/modules/h...videocap ture which should just work if you want to rule out the rest of the code being the problem.