OpenCV カメラ うつらない 動かない

int key;

key = cvWaitKey(1);
if (key == 0x1b)
{
break;
}

}

cvWaitKey使わないとカメラが動かないよん。