소스 검색

fix iOS Build

Tobias Conradi 9 년 전
부모
커밋
83f144d203
3개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/LocalNetworkConnectivity/VLCNetworkListCell.h
  2. 6 0
      Sources/VLCConstants.h
  3. 2 0
      Sources/VLCHTTPConnection.m

+ 1 - 1
Sources/LocalNetworkConnectivity/VLCNetworkListCell.h

@@ -51,6 +51,6 @@
 @end
 
 
-@interface VLCNetworkListCell (CellConfigurator) <VLCServerBrowsingCell>
+@interface VLCNetworkListCell (CellConfigurator) <VLCRemoteBrowsingCell>
 
 @end

+ 6 - 0
Sources/VLCConstants.h

@@ -79,6 +79,12 @@
 
 #define kVLCDarwinNotificationNowPlayingInfoUpdate @"org.videolan.ios-app.nowPlayingInfoUpdate"
 
+#if TARGET_IPHONE_SIMULATOR
+#define WifiInterfaceName @"en1"
+#else
+#define WifiInterfaceName @"en0"
+#endif
+
 #define kVLCMigratedToUbiquitousStoredServerList @"kVLCMigratedToUbiquitousStoredServerList"
 #define kVLCStoredServerList @"kVLCStoredServerList"
 #define kVLCStoreDropboxCredentials @"kVLCStoreDropboxCredentials"

+ 2 - 0
Sources/VLCHTTPConnection.m

@@ -589,6 +589,7 @@
 #endif
 }
 
+#if TARGET_OS_TV
 - (void)startPlaybackOfPath:(NSString *)path
 {
     APLog(@"Starting playback of %@", path);
@@ -600,6 +601,7 @@
                                                                                  animated:YES
                                                                                completion:nil];
 }
+#endif
 
 //-----------------------------------------------------------------
 #pragma mark multipart form data parser delegate