Bläddra i källkod

VLCMedia: fix future compilation warning

Felix Paul Kühne 9 år sedan
förälder
incheckning
09034aaccc
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      Sources/VLCMedia.m

+ 2 - 0
Sources/VLCMedia.m

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