Commit 32a64481 authored by Max Kellermann's avatar Max Kellermann

lib/upnp: fix bad std::chrono cast

libupnp provides seconds, not whatever time unit is used by std::chrono::steady_clock.
parent 1776015c
......@@ -4,6 +4,8 @@ ver 0.20.3 (not yet released)
* database
- proxy: fix error "terminate called after throwing ..."
- proxy: make connect errors during startup non-fatal
* neighbor
- upnp: fix premature expiry
* replay gain: don't reset ReplayGain levels when unpausing playback
* silence surround channels when converting from stereo
* use shortcuts such as "dsd64" in log messages
......
......@@ -62,7 +62,7 @@ class UPnPDeviceDirectory final : UpnpCallback {
DiscoveredTask(const Upnp_Discovery *disco)
:url(disco->Location),
device_id(disco->DeviceId),
expires(disco->Expires) {}
expires(std::chrono::seconds(disco->Expires)) {}
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment