It's simple: don't call cvNamedWindow(), cvShowImage() and cvDestroyWindow().
It's simple: don't call cvNamedWindow(), cvShowImage() and cvDestroyWindow().
In other words, remove all those lines from your code, but leave the call to cvWaitKey(33). This function makes the loop sleep for 33ms before the next frame is retrieved.