pipewire: module-raop-sink: use uint32_t for sample rate

32 bits are enough, and additionally this also fixes an incorrect
format string, which caused the default `audio.rate` to be
incorrectly set on some platforms, such as 32-bit arm ones.

Fixes #4080
This commit is contained in:
Barnabás Pőcze 2024-06-27 01:43:44 +02:00 committed by Wim Taymans
parent 4067b3a985
commit 7732d0e3e5
3 changed files with 9 additions and 9 deletions

View file

@ -633,7 +633,7 @@ int rtp_stream_receive_packet(struct rtp_stream *s, uint8_t *buffer, size_t len)
return impl->receive_rtp(impl, buffer, len);
}
uint64_t rtp_stream_get_time(struct rtp_stream *s, uint64_t *rate)
uint64_t rtp_stream_get_time(struct rtp_stream *s, uint32_t *rate)
{
struct impl *impl = (struct impl*)s;
struct spa_io_position *pos = impl->io_position;