From: Jaroslav Kysela Date: Tue, 5 Jan 2016 13:38:01 +0000 (+0100) Subject: SAT>IP server: add more traces X-Git-Tag: v4.2.1~1216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18c0ca1621431d58e3d008832eefec93409b10c4;p=thirdparty%2Ftvheadend.git SAT>IP server: add more traces --- diff --git a/src/satip/rtp.c b/src/satip/rtp.c index b2b190cbb..f97972168 100644 --- a/src/satip/rtp.c +++ b/src/satip/rtp.c @@ -420,8 +420,9 @@ satip_rtp_thread(void *aux) } pthread_mutex_unlock(&sq->sq_mutex); - tvhdebug("satips", "RTP streaming to %s:%d closed (%s request)", - peername, rtp->port, alive ? "remote" : "streaming"); + tvhdebug("satips", "RTP streaming to %s:%d closed (%s request)%s", + peername, rtp->port, alive ? "remote" : "streaming", + fatal ? " (fatal)" : ""); return NULL; } @@ -492,6 +493,8 @@ void satip_rtp_queue(void *id, th_subscription_t *subs, rtp->sig.snr = 28000; } + tvhtrace("satips", "rtp queue %p", rtp); + pthread_mutex_lock(&satip_rtp_lock); TAILQ_INSERT_TAIL(&satip_rtp_sessions, rtp, link); tvhthread_create(&rtp->tid, NULL, satip_rtp_thread, rtp, "satip-rtp"); @@ -557,6 +560,7 @@ void satip_rtp_close(void *id) pthread_mutex_lock(&satip_rtp_lock); rtp = satip_rtp_find(id); + tvhtrace("satips", "rtp close %p", rtp); if (rtp) { TAILQ_REMOVE(&satip_rtp_sessions, rtp, link); sq = rtp->sq;