Explorar o código

VLCMedia: fix future compilation warning

Felix Paul Kühne %!s(int64=9) %!d(string=hai) anos
pai
achega
09034aaccc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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];
     }