From 5ca6e2910ae0a8a2d1fa7b16f56130d533251ff9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Jul 2014 18:53:08 +0200 Subject: PlaylistSong, CueParser: don't override Tag::time Now that Song::GetDuration() is used (which considers start_ms and end_ms), we don't need to override the Tag's duration value. --- src/playlist/cue/CueParser.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/playlist/cue') diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx index dc96218f4..fd467dbc0 100644 --- a/src/playlist/cue/CueParser.cxx +++ b/src/playlist/cue/CueParser.cxx @@ -270,8 +270,6 @@ CueParser::Feed2(char *p) previous->GetStartMS() < (unsigned)position_ms) { last_updated = true; previous->SetEndMS(position_ms); - previous->WritableTag().time = - (previous->GetEndMS() - previous->GetStartMS() + 500) / 1000; } current->SetStartMS(position_ms); -- cgit v1.2.3