VideoGrabber - AVCaptureSessionPresetLow

Hello,

(everything discussed is inside ofxiPhoneVideoGrabber.mm)
I’ve been trying to capture the frames in lower resolutions and I always get an error at the following line: (EXC_BAD_ACCESS error)

bUpdateTex = convertCGImageToPixels(ref, pixels);

When I tried changing :
NSString * preset = AVCaptureSessionPresetMedium;
to
NSString * preset = AVCaptureSessionPresetLow;

and
width = 480;
height = 360;
to
width = 192;
height = 144;

Anyone has an idea of what’s causing it to crash at the line above?

Thanks!
Pete