浏览代码

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];