diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 00:34:26 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 00:34:26 +0000 |
commit | bf9e2afbf9f8c9ec44dbad033290c8fe66d170f6 (patch) | |
tree | 40f0d94ab2d528578eba3b21431ced08f291c905 /src/playlist.c | |
parent | 3cb9923714c4dfa18bf6338c30b0554524b25836 (diff) | |
download | mpd-bf9e2afbf9f8c9ec44dbad033290c8fe66d170f6.tar.gz mpd-bf9e2afbf9f8c9ec44dbad033290c8fe66d170f6.tar.xz mpd-bf9e2afbf9f8c9ec44dbad033290c8fe66d170f6.zip |
just a we bit of changes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1075 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/playlist.c b/src/playlist.c index a705b3160..ce7ac77df 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -386,8 +386,9 @@ void queueNextSongInPlaylist() { playlist.queued, playlist.songs[playlist.order[ playlist.queued]]->utf8url); - if(queueSong(playlist.songs[playlist.order[ - playlist.queued]]->utf8url)<0) { + if(queueSong(playlist.songs[playlist.order[playlist.queued]]) < + 0) + { playlist.queued = -1; playlist_queueError = 1; } @@ -401,8 +402,9 @@ void queueNextSongInPlaylist() { playlist.queued, playlist.songs[playlist.order[ playlist.queued]]->utf8url); - if(queueSong(playlist.songs[playlist.order[ - playlist.queued]]->utf8url)<0) { + if(queueSong(playlist.songs[playlist.order[playlist.queued]]) < + 0) + { playlist.queued = -1; playlist_queueError = 1; } @@ -660,9 +662,7 @@ int playPlaylistOrderNumber(FILE * fp, int orderNum) { DEBUG("playlist: play %i:\"%s\"\n",orderNum, (playlist.songs[playlist.order[orderNum]])->utf8url); - if(playerPlay(fp,(playlist.songs[playlist.order[orderNum]])-> - utf8url)<0) - { + if(playerPlay(fp,(playlist.songs[playlist.order[orderNum]])) < 0) { stopPlaylist(fp); return -1; } @@ -1220,6 +1220,6 @@ int seekSongInPlaylist(FILE * fp, int song, float time) { if(playPlaylistOrderNumber(fp,i)<0) return -1; } - return playerSeek(fp,playlist.songs[playlist.order[i]]->utf8url,time); + return playerSeek(fp, playlist.songs[playlist.order[i]], time); } /* vim:set shiftwidth=4 tabstop=8 expandtab: */ |