From 887ad7f0a68e891ac87b13bafd775b3c83644266 Mon Sep 17 00:00:00 2001 From: fduncanh Date: Mon, 21 Feb 2022 13:18:17 -0500 Subject: [PATCH] complete previous commit --- lib/raop_ntp.c | 2 +- uxplay.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/raop_ntp.c b/lib/raop_ntp.c index 4457036..3ee54f8 100644 --- a/lib/raop_ntp.c +++ b/lib/raop_ntp.c @@ -354,7 +354,7 @@ raop_ntp_thread(void *arg) logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp exiting thread"); if (conn_reset && raop_ntp->callbacks.conn_reset) { - raop_ntp->callbacks.conn_reset(raop_ntp->callbacks.cls, timeout_counter, false); + raop_ntp->callbacks.conn_reset(raop_ntp->callbacks.cls, timeout_counter, false); } return 0; } diff --git a/uxplay.cpp b/uxplay.cpp index 29b600a..6e35183 100644 --- a/uxplay.cpp +++ b/uxplay.cpp @@ -599,14 +599,15 @@ extern "C" void conn_destroy (void *cls) { } } -extern "C" void conn_reset (void *cls, int timeouts) { +extern "C" void conn_reset (void *cls, int timeouts, bool reset_video) { LOGI("***ERROR lost connection with client (network problem?)"); if (timeouts) { LOGI(" Client no-response limit of %d timeouts (%d seconds) reached:", timeouts, 3*timeouts); LOGI(" Sometimes the network connection may recover after a longer delay:\n" " the default timeout limit n = %d can be changed with the \"-reset n\" option", NTP_TIMEOUT_LIMIT); } - close_window = false; /* leave "frozen" window open */ + printf("reset_video %d\n",(int) reset_video); + close_window = reset_video; /* leave "frozen" window open if reset_video is false */ raop_stop(raop); reset_loop = true; }