diff options
author | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
commit | ba161ec572b98d3bcf9f735ff122133319fe896a (patch) | |
tree | a211690e3a8b7fce1fb6db540228122bead1f2bc /src/PlaylistControl.cxx | |
parent | 43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff) | |
download | mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip |
song: convert header to C++
Diffstat (limited to 'src/PlaylistControl.cxx')
-rw-r--r-- | src/PlaylistControl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistControl.cxx b/src/PlaylistControl.cxx index 3db61cc7c..5b33486e3 100644 --- a/src/PlaylistControl.cxx +++ b/src/PlaylistControl.cxx @@ -25,7 +25,7 @@ #include "config.h" #include "Playlist.hxx" #include "PlayerControl.hxx" -#include "song.h" +#include "Song.hxx" #include <glib.h> @@ -198,7 +198,7 @@ playlist::SeekSongPosition(player_control &pc, unsigned song, float seek_time) if (!queue.IsValidPosition(song)) return PLAYLIST_RESULT_BAD_RANGE; - const struct song *queued_song = GetQueuedSong(); + const Song *queued_song = GetQueuedSong(); unsigned i = queue.random ? queue.PositionToOrder(song) @@ -218,7 +218,7 @@ playlist::SeekSongPosition(player_control &pc, unsigned song, float seek_time) queued_song = nullptr; } - struct song *the_song = song_dup_detached(queue.GetOrder(i)); + Song *the_song = queue.GetOrder(i)->DupDetached(); if (!pc.Seek(the_song, seek_time)) { UpdateQueuedSong(pc, queued_song); |