From 44d1536fe420d4cd7d32744bf2d027620e4bc05d Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 27 Jul 2016 13:21:03 +0200 Subject: [PATCH] Set the document URL when opening a mp4 from the queue. --- Classes/SBDocument.m | 1 + Classes/SBQueueController.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/SBDocument.m b/Classes/SBDocument.m index 0bdf261..779a27a 100755 --- a/Classes/SBDocument.m +++ b/Classes/SBDocument.m @@ -117,6 +117,7 @@ { if (self = [super initWithType:@"Video-MPEG4" error:outError]) { self.mp4 = mp4File; + self.fileURL = mp4File.URL; } return self; diff --git a/Classes/SBQueueController.m b/Classes/SBQueueController.m index a49a37d..72f30a6 100755 --- a/Classes/SBQueueController.m +++ b/Classes/SBQueueController.m @@ -212,7 +212,7 @@ static void *SBQueueContex = &SBQueueContex; } MP42File *mp4 = item.mp4File; - dispatch_sync(dispatch_get_main_queue(), ^{ + dispatch_async(dispatch_get_main_queue(), ^{ SBDocument *doc = [[SBDocument alloc] initWithMP4:mp4 error:&error]; if (doc) {