Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
globalheaders: improve/fix log
  • Loading branch information
perexg committed Aug 24, 2016
1 parent d2fd542 commit c8b048e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plumbing/globalheaders.c
Expand Up @@ -237,7 +237,7 @@ headers_complete(globalheaders_t *gh)
*/
if(threshold || (qd[i] <= 0 && qd_max > (MAX_SCAN_TIME * 90) / 2)) {
ssc->ssc_disabled = 1;
tvhdebug(LS_TSFIX, "gh disable stream %d %s%s%s (PID %i) threshold %d qd %"PRId64" qd_max %"PRId64,
tvhdebug(LS_GLOBALHEADERS, "gh disable stream %d %s%s%s (PID %i) threshold %d qd %"PRId64" qd_max %"PRId64,
ssc->ssc_index, streaming_component_type2txt(ssc->ssc_type),
ssc->ssc_lang[0] ? " " : "", ssc->ssc_lang, ssc->ssc_pid,
threshold, qd[i], qd_max);
Expand All @@ -252,7 +252,7 @@ headers_complete(globalheaders_t *gh)
if (tvhtrace_enabled()) {
for(i = 0; i < ss->ss_num_components; i++) {
ssc = &ss->ss_components[i];
tvhtrace(LS_TSFIX, "stream %d %s%s%s (PID %i) complete time %"PRId64"%s",
tvhtrace(LS_GLOBALHEADERS, "stream %d %s%s%s (PID %i) complete time %"PRId64"%s",
ssc->ssc_index, streaming_component_type2txt(ssc->ssc_type),
ssc->ssc_lang[0] ? " " : "", ssc->ssc_lang, ssc->ssc_pid,
gh_queue_delay(gh, ssc->ssc_index),
Expand Down Expand Up @@ -295,6 +295,8 @@ gh_hold(globalheaders_t *gh, streaming_message_t *sm)
return;
}

pkt_trace(LS_GLOBALHEADERS, pkt, pkt->pkt_componentindex, ssc->ssc_type, "hold receive");

pkt_ref_inc(pkt);

if (pkt->pkt_err == 0)
Expand Down

0 comments on commit c8b048e

Please sign in to comment.