Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation AVAssetExportSession (Testing)
- - (void) exportSynchronously
- {
- dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
- [self exportAsynchronouslyWithCompletionHandler:^{
- dispatch_semaphore_signal(semaphore);
- }];
- dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
- dispatch_release(semaphore);
- }
- @end
Add Comment
Please, Sign In to add comment