title: AVCaptureConnection Freezes my app on the second call
body: <p>this is my code that freezes my app</p>
  
  <pre><code> AVCaptureConnection *videoConnection = [videoOutput connectionWithMediaType:AVMediaTypeVideo];
  
  
  if ([videoConnection isVideoOrientationSupported] )
  {
      [videoConnection setVideoOrientation:AVCaptureVideoOrientationPortrait];
  
  }
  </code></pre>
  
  <p>this is my videoOutput init</p>
  
  <pre><code>// Setup video capture
  videoInput = [[AVCaptureDeviceInput deviceInputWithDevice: front? frontVideoDevice: rearVideoDevice error: &amp;error] retain];
  videoOutput = [[AVCaptureVideoDataOutput alloc] init];
  [videoOutput setAlwaysDiscardsLateVideoFrames: YES];
  // Set the video output to store frame in BGRA (It is supposed to be faster)
  NSString* key = (NSString*)kCVPixelBufferPixelFormatTypeKey; 
  NSNumber* value = [NSNumber numberWithUnsignedInt:kCVPixelFormatType_32BGRA]; 
  NSDictionary* videoSettings = [NSDictionary dictionaryWithObject:value forKey:key]; 
  [videoOutput setVideoSettings:videoSettings]; 
  </code></pre>
  
  <p>when I initialize the session in the second time my app stop responding
  but if i remove the code of the avcaptureconnection everything is fine</p>
  
  <p>?</p>