From 7bf85788fe423d024ac773eca322ec046fcf31fe Mon Sep 17 00:00:00 2001 From: kugel Date: Sun, 31 May 2009 14:33:33 +0000 Subject: [PATCH] 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 --- apps/playlist.c | 4 +--- apps/playlist.h | 2 +- apps/plugin.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index e5babd425..58e004264 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -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 */ diff --git a/apps/playlist.h b/apps/playlist.h index df3bd6221..4f7b9cff3 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -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); diff --git a/apps/plugin.h b/apps/plugin.h index 56d3f42d1..3346a76e4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -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); -- 2.11.4.GIT