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:
parent
677fa4f9bc
commit
c112cb60da
2
NEWS
2
NEWS
|
@ -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
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue