title: MPMediaTypeMovie returns nil
body: <p>I am trying to play all videos, including the movies, which I bought in iTunes. But when I try to fetch the<code>MPMediaItems</code> then I get an <code>NSInvalidArgumentException</code> because the <code>MPMediaQuery</code> returns a nil object.</p>
  
  <p>This is my function:</p>
  
  <pre><code>//get the iPod library
  -(void) buildIPodLibrary{
  
      NSArray *items;
      // Grab videos from the iPod Library, of type == movie (MPMediaTypeMovie)
      //MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:[NSNumber numberWithInteger:MPMediaTypeMovie] forProperty:MPMediaItemPropertyMediaType];
      MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:[NSNumber numberWithInteger:MPMediaTypeMovie] forProperty:MPMediaItemPropertyMediaType];
      MPMediaQuery *query = [[MPMediaQuery alloc] init];
      [query addFilterPredicate:predicate];
      items = [query items];
      itemList = [[NSMutableArray alloc] init];
  
      NSLog(@"%i", items.count);
  
      [itemList addObjectsFromArray:(NSArray *)items];
      //[itemList addObjectsFromArray:(NSArray *)camerRollList];
  }
  </code></pre>
  
  <p>I am running iOS 7.0.4 on an iPad 3.</p>
  
  <p>Thanks.</p>