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:
Thomas Martitz 2009-05-31 14:33:33 +00:00
parent f31e86338a
commit f0aa8ba95d
3 changed files with 3 additions and 5 deletions

View file

@ -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 = &current_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 */

View file

@ -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);

View file

@ -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);