Fix for proper webcam handling

Fixes black window when trying to capture video through webcam.