From 349a9f8ec85f1cb151a5dfa7e4b64ab7f2d89835 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 7 Aug 2017 14:28:10 +0200 Subject: [PATCH] satip server: rtp - show the correct TCP port number in debug msg for streaming close, fixes #4226 --- src/satip/rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/satip/rtp.c b/src/satip/rtp.c index 5679f7ade..d6f6fb07f 100644 --- a/src/satip/rtp.c +++ b/src/satip/rtp.c @@ -442,7 +442,9 @@ satip_rtp_thread(void *aux) pthread_mutex_unlock(&sq->sq_mutex); tvhdebug(LS_SATIPS, "RTP streaming to %s:%d closed (%s request)%s", - peername, rtp->port, alive ? "remote" : "streaming", + peername, + tcp ? ntohs(IP_PORT(rtp->peer)) : rtp->port, + alive ? "remote" : "streaming", fatal ? " (fatal)" : ""); return NULL; -- 2.47.2