output/snapcast: fix typo which caused "Failed to get chunk"

This bug caused a 9 second offset in all time stamps.  Due to that,
the Snapcast server thought the chunks are too old and discarded them.

Fixes https://github.com/MusicPlayerDaemon/MPD/discussions/1287
This commit is contained in:
Max Kellermann 2021-10-18 16:39:08 +02:00
parent 677fa4f9bc
commit c112cb60da
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.23.1 (not yet released)
* output
- snapcast: fix time stamp bug which caused "Failed to get chunk"
* fix libfmt linker problems
* fix broken password authentication

View File

@ -45,7 +45,7 @@ struct SnapcastTimestamp {
if (a_usec < b_usec) {
--result_sec;
result_usec += 1'000'0000;
result_usec += 1'000'000;
}
return {result_sec, result_usec};