lib/upnp: fix bad std::chrono cast
libupnp provides seconds, not whatever time unit is used by std::chrono::steady_clock.
This commit is contained in:
parent
1776015c6c
commit
32a64481f2
2
NEWS
2
NEWS
|
@ -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)) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue