summaryrefslogtreecommitdiffstats
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-15 20:58:14 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-15 20:58:14 +0000
commitbda8a963ad0ce49f67cb6641bb3b966f770366f3 (patch)
treefba921269db2805edb4e837bf204e033874ff9fa /apps/playlist.c
parent160d9f69086140b058726069b36ccdb98685c863 (diff)
downloadrockbox-bda8a963ad0ce49f67cb6641bb3b966f770366f3.tar.gz
rockbox-bda8a963ad0ce49f67cb6641bb3b966f770366f3.tar.bz2
rockbox-bda8a963ad0ce49f67cb6641bb3b966f770366f3.zip
Add conditionals for functions only needed on SWCODEC targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31296 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 4588548d54..117d657ed1 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1068,6 +1068,7 @@ static int calculate_step_count(const struct playlist_info *playlist, int steps)
return steps;
}
+#if CONFIG_CODEC == SWCODEC
/* Marks the index of the track to be skipped that is "steps" away from
* current playing track.
*/
@@ -1089,6 +1090,7 @@ void playlist_skip_entry(struct playlist_info *playlist, int steps)
playlist->indices[index] |= PLAYLIST_SKIPPED;
}
+#endif /* CONFIG_CODEC == SWCODEC */
/*
* returns the index of the track that is "steps" away from current playing
@@ -2638,6 +2640,7 @@ int playlist_next(int steps)
return index;
}
+#if CONFIG_CODEC == SWCODEC
/* try playing next or previous folder */
bool playlist_next_dir(int direction)
{
@@ -2647,6 +2650,7 @@ bool playlist_next_dir(int direction)
return create_and_play_dir(direction, false) >= 0;
}
+#endif /* CONFIG_CODEC == SWCODEC */
/* Get resume info for current playing song. If return value is -1 then
settings shouldn't be saved. */