Commit c9a2e03a authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMediaPlayer: fix endianness issue

(cherry picked from commit 3b82c9fc8af83b201860c745a75a8f719cc76bcb)
parent 44acc9fa
......@@ -267,7 +267,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
*
* Pass -1 to disable.
*/
@property (readwrite) NSUInteger currentVideoTrackIndex;
@property (readwrite) int currentVideoTrackIndex;
/**
* Returns the video track names, usually a language name or a description
......
......@@ -276,19 +276,18 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
#pragma mark -
#pragma mark Video Tracks
- (void)setCurrentVideoTrackIndex:(NSUInteger)value
- (void)setCurrentVideoTrackIndex:(int)value
{
libvlc_video_set_track(_playerInstance, (int)value);
libvlc_video_set_track(_playerInstance, value);
}
- (NSUInteger)currentVideoTrackIndex
- (int)currentVideoTrackIndex
{
NSInteger count = libvlc_video_get_track_count(_playerInstance);
int count = libvlc_video_get_track_count(_playerInstance);
if (count <= 0)
return NSNotFound;
NSUInteger result = libvlc_video_get_track(_playerInstance);
return result;
return libvlc_video_get_track(_playerInstance);
}
- (NSArray *)videoTrackNames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment