diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/playlist.c b/src/playlist.c index e7eb1827d..31dc31fc5 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1081,12 +1081,10 @@ int moveSongInPlaylist(FILE * fp, int from, int to) { return 0; } -int moveSongInPlaylistById(FILE * fp, int id1, int id2) { +int moveSongInPlaylistById(FILE * fp, int id1, int to) { checkSongId(id1); - checkSongId(id2); - return moveSongInPlaylist(fp, playlist.idToNum[id1], - playlist.idToNum[id2]); + return moveSongInPlaylist(fp, playlist.idToNum[id1], to); } void orderPlaylist() { @@ -1461,3 +1459,7 @@ int seekSongInPlaylistById(FILE * fp, int id, float time) { return seekSongInPlaylist(fp, playlist.idToNum[id], time); } + +int getPlaylistSongId(int song) { + return playlist.numToId[song]; +} |