db/LightSong: use std::chrono::duration for start_ms and end_ms

This commit is contained in:
Max Kellermann
2014-08-28 12:35:26 +02:00
parent 6ad933982f
commit 2efd8ef52d
7 changed files with 28 additions and 24 deletions

View File

@@ -66,7 +66,7 @@ public:
real_uri = real_uri2.c_str();
tag = &tag2;
mtime = 0;
start_ms = end_ms = 0;
start_time = end_time = SongTime::zero();
}
};
@@ -360,7 +360,7 @@ visitSong(const UPnPDirObject &meta, const char *path,
song.real_uri = meta.url.c_str();
song.tag = &meta.tag;
song.mtime = 0;
song.start_ms = song.end_ms = 0;
song.start_time = song.end_time = SongTime::zero();
return !selection.Match(song) || visit_song(song, error);
}