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/SongSave.cxx | |
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 '')
-rw-r--r-- | src/SongSave.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SongSave.cxx b/src/SongSave.cxx index 93613e938..d06dabfd6 100644 --- a/src/SongSave.cxx +++ b/src/SongSave.cxx @@ -65,7 +65,7 @@ song_save(BufferedOutputStream &os, const DetachedSong &song) { os.Format(SONG_BEGIN "%s\n", song.GetURI()); - range_save(os, song.GetStartMS(), song.GetEndMS()); + range_save(os, song.GetStartTime().ToMS(), song.GetEndTime().ToMS()); tag_save(os, song.GetTag()); @@ -113,8 +113,8 @@ song_load(TextFile &file, const char *uri, ? strtoul(endptr + 1, nullptr, 10) : 0; - song->SetStartMS(start_ms); - song->SetEndMS(end_ms); + song->SetStartTime(SongTime::FromMS(start_ms)); + song->SetEndTime(SongTime::FromMS(end_ms)); } else { delete song; |