소스 검색

VLCHTTPFileDownloader: Add guard for tvOS

Soomin Lee 6 년 전
부모
커밋
8416fbf0c3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Sources/VLCHTTPFileDownloader.m

+ 2 - 0
Sources/VLCHTTPFileDownloader.m

@@ -204,9 +204,11 @@
     if ([fileManager fileExistsAtPath:_filePath]) {
         [fileManager moveItemAtPath:_filePath toPath:finalFilePath error:nil];
         [[VLCMediaFileDiscoverer sharedInstance] performSelectorOnMainThread:@selector(updateMediaList) withObject:nil waitUntilDone:NO];
+#if TARGET_OS_IOS
         // FIXME: Replace notifications by cleaner observers
         [[NSNotificationCenter defaultCenter] postNotificationName:NSNotification.VLCNewFileAddedNotification
                                                             object:self];
+#endif
     }
 
     [self.delegate downloadEnded];