Browse Source

MVK: fix installation target

Felix Paul Kühne 10 years ago
parent
commit
3c7ecf9c66
2 changed files with 6 additions and 6 deletions
  1. 1 1
      MobileVLCKit.xcodeproj/project.pbxproj
  2. 5 5
      Sources/VLCMediaPlayer.m

+ 1 - 1
MobileVLCKit.xcodeproj/project.pbxproj

@@ -70,7 +70,7 @@
 		7A5ECB6211DE961B00F66AF3 /* Copy Headers */ = {
 		7A5ECB6211DE961B00F66AF3 /* Copy Headers */ = {
 			isa = PBXCopyFilesBuildPhase;
 			isa = PBXCopyFilesBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
-			dstPath = include/MobileVLCKit;
+			dstPath = MobileVLCKit;
 			dstSubfolderSpec = 16;
 			dstSubfolderSpec = 16;
 			files = (
 			files = (
 				7A5ECB9E11DE975A00F66AF3 /* MobileVLCKit.h in Copy Headers */,
 				7A5ECB9E11DE975A00F66AF3 /* MobileVLCKit.h in Copy Headers */,

+ 5 - 5
Sources/VLCMediaPlayer.m

@@ -299,7 +299,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
 {
 {
     int count = libvlc_video_get_track_count(_playerInstance);
     int count = libvlc_video_get_track_count(_playerInstance);
     if (count <= 0)
     if (count <= 0)
-        return NSNotFound;
+        return INT_MAX;
 
 
     return libvlc_video_get_track(_playerInstance);
     return libvlc_video_get_track(_playerInstance);
 }
 }
@@ -356,7 +356,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
     NSInteger count = libvlc_video_get_spu_count(_playerInstance);
     NSInteger count = libvlc_video_get_spu_count(_playerInstance);
 
 
     if (count <= 0)
     if (count <= 0)
-        return NSNotFound;
+        return INT_MAX;
 
 
     return libvlc_video_get_spu(_playerInstance);
     return libvlc_video_get_spu(_playerInstance);
 }
 }
@@ -612,7 +612,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
 {
 {
     int count = libvlc_media_player_get_chapter_count(_playerInstance);
     int count = libvlc_media_player_get_chapter_count(_playerInstance);
     if (count <= 0)
     if (count <= 0)
-        return NSNotFound;
+        return INT_MAX;
     int result = libvlc_media_player_get_chapter(_playerInstance);
     int result = libvlc_media_player_get_chapter(_playerInstance);
     return result;
     return result;
 }
 }
@@ -659,7 +659,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
 {
 {
     NSInteger count = libvlc_media_player_get_title_count(_playerInstance);
     NSInteger count = libvlc_media_player_get_title_count(_playerInstance);
     if (count <= 0)
     if (count <= 0)
-        return NSNotFound;
+        return INT_MAX;
 
 
     return libvlc_media_player_get_title(_playerInstance);
     return libvlc_media_player_get_title(_playerInstance);
 }
 }
@@ -805,7 +805,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
 {
 {
     NSInteger count = libvlc_audio_get_track_count(_playerInstance);
     NSInteger count = libvlc_audio_get_track_count(_playerInstance);
     if (count <= 0)
     if (count <= 0)
-        return NSNotFound;
+        return INT_MAX;
 
 
     return libvlc_audio_get_track(_playerInstance);
     return libvlc_audio_get_track(_playerInstance);
 }
 }