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

VLCMediaListPlayer: make API additions more cooca like

parent bb2eb018
...@@ -66,11 +66,11 @@ typedef NSInteger VLCRepeatMode; ...@@ -66,11 +66,11 @@ typedef NSInteger VLCRepeatMode;
/** /**
* previous, next, play item at index * previous, next, play item at index
* \return 0 on success, -1 if there is no such item * \returns YES on success, NO if there is no such item
*/ */
- (int)next; - (BOOL)next;
- (int)previous; - (BOOL)previous;
- (int)playItemAtIndex:(int)index; - (BOOL)playItemAtIndex:(int)index;
/** /**
* Playmode selection (don't repeat anything, repeat one, repeat all) * Playmode selection (don't repeat anything, repeat one, repeat all)
......
...@@ -128,19 +128,19 @@ ...@@ -128,19 +128,19 @@
libvlc_media_list_player_stop(instance); libvlc_media_list_player_stop(instance);
} }
- (int)next - (BOOL)next
{ {
return libvlc_media_list_player_next(instance); return libvlc_media_list_player_next(instance) == 0 ? YES : NO;
} }
- (int)previous - (BOOL)previous
{ {
return libvlc_media_list_player_previous(instance); return libvlc_media_list_player_previous(instance) == 0 ? YES : NO;
} }
- (int)playItemAtIndex:(int)index - (BOOL)playItemAtIndex:(int)index
{ {
return libvlc_media_list_player_play_item_at_index(instance, index); return libvlc_media_list_player_play_item_at_index(instance, index) == 0 ? YES : NO;
} }
- (void)setRepeatMode:(VLCRepeatMode)repeatMode - (void)setRepeatMode:(VLCRepeatMode)repeatMode
......
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