Webcam test Fix 1

Fixed the still video problem. Now there is complete video capture but
the only problem is in destroying the window.
line 11 is suspected to have errors