diff options
author | Max Kellermann <max@duempel.org> | 2014-08-28 06:54:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-28 13:03:18 +0200 |
commit | 6ad933982f68f5fcbd1b3179bf5fed26f63aa792 (patch) | |
tree | f0aee7be7dd2caba5a795602bf519739ed6cefc0 /src/queue | |
parent | 854258f37626d40271a821d4835e9cfb946c8ad8 (diff) | |
download | mpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.tar.gz mpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.tar.xz mpd-6ad933982f68f5fcbd1b3179bf5fed26f63aa792.zip |
DetachedSong: use std::chrono::duration for start_ms and end_ms
Diffstat (limited to 'src/queue')
-rw-r--r-- | src/queue/PlaylistEdit.cxx | 4 | ||||
-rw-r--r-- | src/queue/QueueSave.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx index 2ac015f6f..d10edb942 100644 --- a/src/queue/PlaylistEdit.cxx +++ b/src/queue/PlaylistEdit.cxx @@ -479,8 +479,8 @@ playlist::SetSongIdRange(PlayerControl &pc, unsigned id, } /* edit it */ - song.SetStartMS(start_ms); - song.SetEndMS(end_ms); + song.SetStartTime(SongTime::FromMS(start_ms)); + song.SetEndTime(SongTime::FromMS(end_ms)); /* announce the change to all interested subsystems */ UpdateQueuedSong(pc, nullptr); diff --git a/src/queue/QueueSave.cxx b/src/queue/QueueSave.cxx index 6d871ac19..bc2702572 100644 --- a/src/queue/QueueSave.cxx +++ b/src/queue/QueueSave.cxx @@ -53,7 +53,7 @@ static void queue_save_song(BufferedOutputStream &os, int idx, const DetachedSong &song) { if (song.IsInDatabase() && - song.GetStartMS() == 0 && song.GetEndMS() == 0) + song.GetStartTime().IsZero() && song.GetEndTime().IsZero()) /* use the brief format (just the URI) for "full" database songs */ queue_save_database_song(os, idx, song); |