You can't put this code first before the pendingPick code.  That code is for recording videos to be sent by MMS, and it needs to select qcif regardless of the vendor default.  So this for loop should go in the first else clause below, replacing the hard-coded cif default.