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:
		
							
								
								
									
										2
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NEWS
									
									
									
									
									
								
							| @@ -1,4 +1,6 @@ | |||||||
| ver 0.23.1 (not yet released) | ver 0.23.1 (not yet released) | ||||||
|  | * output | ||||||
|  |   - snapcast: fix time stamp bug which caused "Failed to get chunk" | ||||||
| * fix libfmt linker problems | * fix libfmt linker problems | ||||||
| * fix broken password authentication | * fix broken password authentication | ||||||
|  |  | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ struct SnapcastTimestamp { | |||||||
|  |  | ||||||
| 		if (a_usec < b_usec) { | 		if (a_usec < b_usec) { | ||||||
| 			--result_sec; | 			--result_sec; | ||||||
| 			result_usec += 1'000'0000; | 			result_usec += 1'000'000; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		return {result_sec, result_usec}; | 		return {result_sec, result_usec}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann