Browse Source

tvOS: Fix compilation

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: Carola Nitz <nitz.carola@googlemail.com>
Soomin Lee 8 years ago
parent
commit
0bd209b858
1 changed files with 8 additions and 1 deletions
  1. 8 1
      Sources/VLCPlaybackController.m

+ 8 - 1
Sources/VLCPlaybackController.m

@@ -680,6 +680,7 @@ VLCMediaDelegate>
 {
     NSInteger mediaListCount = _mediaList.count;
 
+#if TARGET_OS_IOS
     if (mediaListCount > 2 && _shuffleMode) {
 
         NSNumber *nextIndex;
@@ -702,6 +703,7 @@ VLCMediaDelegate>
 
         return;
     }
+#endif
 
     if (mediaListCount > 1) {
         [_listPlayer next];
@@ -797,7 +799,7 @@ VLCMediaDelegate>
 }
 
 #pragma mark - 360 Support
-
+#if !TARGET_OS_TV
 - (BOOL)updateViewpoint:(CGFloat)yaw pitch:(CGFloat)pitch roll:(CGFloat)roll fov:(CGFloat)fov absolute:(BOOL)absolute
 {
     return [_mediaPlayer updateViewpoint:yaw pitch:pitch roll:roll fov:fov absolute:absolute];
@@ -819,6 +821,7 @@ VLCMediaDelegate>
     }
     return -1;
 }
+#endif
 
 #pragma mark - equalizer
 
@@ -1357,7 +1360,11 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
               kVLCSettingStretchAudio : [[defaults objectForKey:kVLCSettingStretchAudio] boolValue] ? kVLCSettingStretchAudioOnValue : kVLCSettingStretchAudioOffValue,
               kVLCSettingTextEncoding : [defaults objectForKey:kVLCSettingTextEncoding],
               kVLCSettingSkipLoopFilter : [defaults objectForKey:kVLCSettingSkipLoopFilter],
+#if TARGET_OS_IOS
               kVLCSettingHWDecoding : [defaults objectForKey:kVLCSettingHWDecoding]};
+#else
+                };
+#endif
 }
 
 @end