From 336996f36b7569e17bb0c096bb81c05c9e6a9dc7 Mon Sep 17 00:00:00 2001 From: fduncanh Date: Sat, 5 Feb 2022 01:22:00 -0500 Subject: [PATCH] cleanups from last commit --- lib/raop_ntp.c | 7 +++++-- uxplay.cpp | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/raop_ntp.c b/lib/raop_ntp.c index e4cc80a..02da6d8 100644 --- a/lib/raop_ntp.c +++ b/lib/raop_ntp.c @@ -246,7 +246,8 @@ raop_ntp_thread(void *arg) }; raop_ntp_data_t data_sorted[RAOP_NTP_DATA_COUNT]; const unsigned two_pow_n[RAOP_NTP_DATA_COUNT] = {2, 4, 8, 16, 32, 64, 128, 256}; - + int timeout_counter = 0; + while (1) { MUTEX_LOCK(raop_ntp->run_mutex); if (!raop_ntp->running) { @@ -271,8 +272,10 @@ raop_ntp_thread(void *arg) response_len = recvfrom(raop_ntp->tsock, (char *)response, sizeof(response), 0, (struct sockaddr *) &raop_ntp->remote_saddr, &raop_ntp->remote_saddr_len); if (response_len < 0) { - logger_log(raop_ntp->logger, LOGGER_ERR, "raop_ntp receive timeout"); + timeout_counter++; + logger_log(raop_ntp->logger, LOGGER_ERR, "raop_ntp receive timeout %5d (request sent %llu)", timeout_counter, send_time); } else { + timeout_counter = 0; logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp receive time type_t packetlen = %d", response_len); int64_t t3 = (int64_t) raop_ntp_get_local_time(raop_ntp); diff --git a/uxplay.cpp b/uxplay.cpp index 7caa8a9..b3fe81e 100644 --- a/uxplay.cpp +++ b/uxplay.cpp @@ -76,7 +76,7 @@ static std::string audiosink = "autoaudiosink"; static bool use_audio = true; static bool previous_no_close_behavior = false; static std::string decoder = "decodebin"; -static bool show_client_FPS_data = true; +static bool show_client_FPS_data = false; static gboolean connection_callback (gpointer loop){