From 6ad933982f68f5fcbd1b3179bf5fed26f63aa792 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Aug 2014 06:54:19 +0200 Subject: DetachedSong: use std::chrono::duration for start_ms and end_ms --- src/SongSave.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SongSave.cxx') 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; -- cgit v1.2.3