aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/cue
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-28 06:54:19 +0200
committerMax Kellermann <max@duempel.org>2014-08-28 13:03:18 +0200
commit6ad933982f68f5fcbd1b3179bf5fed26f63aa792 (patch)
treef0aee7be7dd2caba5a795602bf519739ed6cefc0 /src/playlist/cue
parent854258f37626d40271a821d4835e9cfb946c8ad8 (diff)
downloadmpd-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/playlist/cue')
-rw-r--r--src/playlist/cue/CueParser.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx
index 10f28b5a1..372c90b78 100644
--- a/src/playlist/cue/CueParser.cxx
+++ b/src/playlist/cue/CueParser.cxx
@@ -267,12 +267,12 @@ CueParser::Feed2(char *p)
return;
if (!last_updated && previous != nullptr &&
- previous->GetStartMS() < (unsigned)position_ms) {
+ previous->GetStartTime().ToMS() < (unsigned)position_ms) {
last_updated = true;
- previous->SetEndMS(position_ms);
+ previous->SetEndTime(SongTime::FromMS(position_ms));
}
- current->SetStartMS(position_ms);
+ current->SetStartTime(SongTime::FromMS(position_ms));
}
}