浏览代码

VLCMedia: fix future compilation warning

Felix Paul Kühne 9 年之前
父节点
当前提交
09034aaccc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Sources/VLCMedia.m

+ 2 - 0
Sources/VLCMedia.m

@@ -849,12 +849,14 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
     free(psz_value);
 
     if (newValue != oldValue && !(oldValue && newValue && [oldValue compare:newValue] == NSOrderedSame)) {
+#if !TARGET_OS_IPHONE
         // Only fetch the art if needed. (ie, create the NSImage, if it was requested before)
         if (isArtFetched && [metaType isEqualToString:VLCMetaInformationArtworkURL]) {
             [NSThread detachNewThreadSelector:@selector(fetchMetaInformationForArtWorkWithURL:)
                                          toTarget:self
                                        withObject:newValue];
         }
+#endif
 
         [_metaDictionary setValue:newValue forKeyPath:metaType];
     }