fixing setCaptureDevice for iPhone 4 and iPhone 3GS

* credit to mfogg