Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP server: add more traces
  • Loading branch information
perexg committed Jan 5, 2016
1 parent f1d7aab commit 18c0ca1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/satip/rtp.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 18c0ca1

Please sign in to comment.