[mdns] Fix possible incorrect library ID in _dacp._tcp (fixes #899)

If the library ID started with one or more 0's then it would not be printed in
the announcement, which meant that DACP commands would not work due to
incorrect ID.
This commit is contained in:
ejurgensen 2020-03-02 19:53:43 +01:00
parent eb049489b4
commit 37510db748

View File

@ -313,7 +313,7 @@ register_services(char *ffid, bool no_web, bool no_rsp, bool no_daap, bool no_mp
// otherwise at least my Sony speaker won't use the service.
// Use as scratch space for the hash
snprintf(records[4], 128, "iTunes_Ctrl_%" PRIX64, libhash);
snprintf(records[4], 128, "iTunes_Ctrl_%016" PRIX64, libhash);
ret = mdns_register(records[4], "_dacp._tcp", port, txtrecord);
if (ret < 0)