Pass the file url to QTKit, I accidentaly removed it some days ago

This commit is contained in:
Damiano Galassi committed 2015-09-02 08:01:34 +02:00
1 parent ef92468f35
commit 55dc84d4ef
1 file changed
+3 -2
+3 -2
View File
@@ -47,8 +47,9 @@
if ((self = [super init])) { if ((self = [super init])) {
_fileURL = [fileURL retain]; _fileURL = [fileURL retain];
NSDictionary *attrs = @{@"QTMovieOpenAsyncRequiredAttribute": @NO, NSDictionary *attrs = @{QTMovieURLAttribute : _fileURL,
@"QTMovieOpenAsyncOKAttribute": @NO}; QTMovieOpenAsyncRequiredAttribute: @NO,
QTMovieOpenAsyncOKAttribute: @NO};
if (dispatch_get_current_queue() != dispatch_get_main_queue()) { if (dispatch_get_current_queue() != dispatch_get_main_queue()) {
dispatch_sync(dispatch_get_main_queue(), ^{ dispatch_sync(dispatch_get_main_queue(), ^{