mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-19 05:33:49 -04:00
modules: improve debug in RTP
This commit is contained in:
parent
8db1153519
commit
f4587ea434
3 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue