title: didFinishPickingMediaWithInfo duplicate file when saving
body: <p>I have a simple App than you have the possibility to choose an existent video from photo library or you can take a video with UIImagePickerController.</p>
  
  <p>I added the following code for when I make a new video with camera I can save it in photo Gallery if I need in the future.</p>
  
  <pre><code>-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  {
  
  // Get the selected Video.
  NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];
  // Convert to Video data.
  NSData *imageData = [NSData dataWithContentsOfURL:videoURL];
  
  // Save Video to Photo Album
  ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
  NSURL *recordedVideoURL= [info objectForKey:UIImagePickerControllerMediaURL];
  if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:recordedVideoURL]) {
      [library writeVideoAtPathToSavedPhotosAlbum:recordedVideoURL
                                  completionBlock:^(NSURL *assetURL, NSError *error){}
       ];
  } 
  [library release];
  
  [picker dismissModalViewControllerAnimated:NO];
  
  }
  </code></pre>
  
  <p>Now my issue is when I select a video from Photo Library this same video is duplicated as this code save always a new video.</p>
  
  <p>Is it a way to detect if you selected the video from Photo Library ?</p>