summaryrefslogtreecommitdiff
path: root/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-11 23:08:55 +0100
committerMax Kellermann <max@musicpd.org>2017-08-18 12:16:43 +0200
commit902fbb33471b07c3ab9bf62d13927f2db46e35f5 (patch)
tree6a85b281f1ba869b0a7a1bb429bc1d117d76d51b /src/db/plugins/upnp/UpnpDatabasePlugin.cxx
parent9f16c798d02d23bccbf463b78bfb228ccc666e11 (diff)
db/LightDirectory: use std::chrono::system_clock::time_point
Diffstat (limited to 'src/db/plugins/upnp/UpnpDatabasePlugin.cxx')
-rw-r--r--src/db/plugins/upnp/UpnpDatabasePlugin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
index 2af522745..f40b70b87 100644
--- a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+++ b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
@@ -477,7 +477,8 @@ VisitObject(const UPnPDirObject &object, const char *uri,
case UPnPDirObject::Type::CONTAINER:
if (visit_directory)
- visit_directory(LightDirectory(uri, 0));
+ visit_directory(LightDirectory(uri,
+ std::chrono::system_clock::time_point::min()));
break;
case UPnPDirObject::Type::ITEM:
@@ -582,7 +583,8 @@ UpnpDatabase::Visit(const DatabaseSelection &selection,
if (vpath.empty()) {
for (const auto &server : discovery->GetDirectories()) {
if (visit_directory) {
- const LightDirectory d(server.getFriendlyName(), 0);
+ const LightDirectory d(server.getFriendlyName(),
+ std::chrono::system_clock::time_point::min());
visit_directory(d);
}