playlist start can only have 1 return value (0), so make it return nothing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21142 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f31e86338a
commit
f0aa8ba95d
3 changed files with 3 additions and 5 deletions
|
@ -2405,7 +2405,7 @@ int playlist_shuffle(int random_seed, int start_index)
|
|||
}
|
||||
|
||||
/* start playing current playlist at specified index/offset */
|
||||
int playlist_start(int start_index, int offset)
|
||||
void playlist_start(int start_index, int offset)
|
||||
{
|
||||
struct playlist_info* playlist = ¤t_playlist;
|
||||
|
||||
|
@ -2423,8 +2423,6 @@ int playlist_start(int start_index, int offset)
|
|||
playlist->started = true;
|
||||
sync_control(playlist, false);
|
||||
audio_play(offset);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Returns false if 'steps' is out of bounds, else true */
|
||||
|
|
|
@ -122,7 +122,7 @@ int playlist_create(const char *dir, const char *file);
|
|||
int playlist_resume(void);
|
||||
int playlist_add(const char *filename);
|
||||
int playlist_shuffle(int random_seed, int start_index);
|
||||
int playlist_start(int start_index, int offset);
|
||||
void playlist_start(int start_index, int offset);
|
||||
bool playlist_check(int steps);
|
||||
char *playlist_peek(int steps);
|
||||
int playlist_next(int steps);
|
||||
|
|
|
@ -586,7 +586,7 @@ struct plugin_api {
|
|||
/* playback control */
|
||||
int (*playlist_amount)(void);
|
||||
int (*playlist_resume)(void);
|
||||
int (*playlist_start)(int start_index, int offset);
|
||||
void (*playlist_start)(int start_index, int offset);
|
||||
void (*audio_play)(long offset);
|
||||
void (*audio_stop)(void);
|
||||
void (*audio_pause)(void);
|
||||
|
|
Loading…
Reference in a new issue