Skip to content

Commit

Permalink
Removed duplicate options definition
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmakaila committed Dec 19, 2018
1 parent 9276264 commit d2fd035
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,11 @@ + (BOOL)requiresMainQueueSetup
PHAsset *phAsset = [phAssetFetchResult firstObject];
PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init];
options.networkAccessAllowed = YES;
options.version = PHVideoRequestOptionsVersionOriginal;
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;

dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group);

PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc]init];
options.version = PHVideoRequestOptionsVersionOriginal;
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;
options.networkAccessAllowed = YES;

[[PHImageManager defaultManager] requestAVAssetForVideo:phAsset options:options resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) {

Expand Down

0 comments on commit d2fd035

Please sign in to comment.