From bf9e2afbf9f8c9ec44dbad033290c8fe66d170f6 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 19 May 2004 00:34:26 +0000 Subject: just a we bit of changes git-svn-id: https://svn.musicpd.org/mpd/trunk@1075 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/playlist.c') 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: */ -- cgit v1.2.3