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/playlist/cue/CueParser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/playlist/cue') 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)); } } -- cgit v1.2.3