summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c8
-rw-r--r--apps/playlist.h2
-rw-r--r--apps/tagtree.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 5f2062f..416f981 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -661,7 +661,7 @@ static int create_and_play_dir(int direction, bool play_last)
* Removes all tracks, from the playlist, leaving the presently playing
* track queued.
*/
-int remove_all_tracks(struct playlist_info *playlist)
+int playlist_remove_all_tracks(struct playlist_info *playlist)
{
int result;
@@ -775,7 +775,7 @@ static int add_track_to_playlist(struct playlist_info* playlist,
break;
}
case PLAYLIST_REPLACE:
- if (remove_all_tracks(playlist) < 0)
+ if (playlist_remove_all_tracks(playlist) < 0)
return -1;
position = insert_position = playlist->index + 1;
@@ -2905,7 +2905,7 @@ int playlist_insert_directory(struct playlist_info* playlist,
if (position == PLAYLIST_REPLACE)
{
- if (remove_all_tracks(playlist) == 0)
+ if (playlist_remove_all_tracks(playlist) == 0)
position = PLAYLIST_INSERT_LAST;
else
return -1;
@@ -2995,7 +2995,7 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename,
if (position == PLAYLIST_REPLACE)
{
- if (remove_all_tracks(playlist) == 0)
+ if (playlist_remove_all_tracks(playlist) == 0)
position = PLAYLIST_INSERT_LAST;
else return -1;
}
diff --git a/apps/playlist.h b/apps/playlist.h
index af9a095..006ae59 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -164,6 +164,6 @@ int playlist_save(struct playlist_info* playlist, char *filename);
int playlist_directory_tracksearch(const char* dirname, bool recurse,
int (*callback)(char*, void*),
void* context);
-int remove_all_tracks(struct playlist_info *playlist);
+int playlist_remove_all_tracks(struct playlist_info *playlist);
#endif /* __PLAYLIST_H__ */
diff --git a/apps/tagtree.c b/apps/tagtree.c
index faffb00..50921d0 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1585,7 +1585,7 @@ static bool insert_all_playlist(struct tree_context *c, int position, bool queue
if (position == PLAYLIST_REPLACE)
{
- if (remove_all_tracks(NULL) == 0)
+ if (playlist_remove_all_tracks(NULL) == 0)
position = PLAYLIST_INSERT_LAST;
else return -1; }