Set the document URL when opening a mp4 from the queue.
This commit is contained in:
1 parent
f10421039f
commit
44d1536fe4
2 files changed
+2
-1
No files matched your search
@@ -117,6 +117,7 @@
|
|||||||
{
|
{
|
||||||
if (self = [super initWithType:@"Video-MPEG4" error:outError]) {
|
if (self = [super initWithType:@"Video-MPEG4" error:outError]) {
|
||||||
self.mp4 = mp4File;
|
self.mp4 = mp4File;
|
||||||
|
self.fileURL = mp4File.URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
}
|
}
|
||||||
|
|
||||||
MP42File *mp4 = item.mp4File;
|
MP42File *mp4 = item.mp4File;
|
||||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
SBDocument *doc = [[SBDocument alloc] initWithMP4:mp4 error:&error];
|
SBDocument *doc = [[SBDocument alloc] initWithMP4:mp4 error:&error];
|
||||||
|
|
||||||
if (doc) {
|
if (doc) {
|
||||||
|
|||||||
Reference in new issue
Block a user