modules: improve debug in RTP

This commit is contained in:
Wim Taymans 2026-03-17 13:53:23 +01:00
parent 8db1153519
commit f4587ea434
3 changed files with 3 additions and 3 deletions

View file

@ -346,7 +346,7 @@ static int send_udp_sync_packet(struct impl *impl, uint32_t rtptime, unsigned in
res = sendmsg(impl->control_fd, &msg, MSG_NOSIGNAL);
if (res < 0) {
res = -errno;
pw_log_warn("error sending control packet: %d", res);
pw_log_warn("error sending control packet: %d (%m)", res);
}
pw_log_debug("raop control sync: first:%d latency:%u now:%"PRIx64" rtptime:%u",

View file

@ -556,7 +556,7 @@ static void rtp_audio_flush_packets(struct impl *impl, uint32_t num_packets, uin
((uint64_t)timestamp * stride) % impl->actual_max_buffer_size,
&iov[1], tosend * stride);
pw_log_trace("sending %d packet:%d ts_offset:%d timestamp:%u (%f s)",
pw_log_trace_fp("sending %d packet:%d ts_offset:%d timestamp:%u (%f s)",
tosend, num_packets, impl->ts_offset, timestamp,
(double)timestamp * impl->io_position->clock.rate.num /
impl->io_position->clock.rate.denom);

View file

@ -426,7 +426,7 @@ static int stream_stop(struct impl *impl)
* because a stop involves closing the connection. If the timer is still
* running, it needs an open connection for sending out remaining packets. */
if (!timer_running) {
int res;
int res = 0;
pw_log_info("closing connection as part of stopping the stream");
rtp_stream_emit_close_connection(impl, &res);
if (res > 0) {