Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
globalheaders: reduce scan time, add warning for disabled streams
  • Loading branch information
perexg committed Dec 8, 2014
1 parent 0e8647a commit 3535d7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plumbing/globalheaders.c
Expand Up @@ -34,7 +34,7 @@ typedef struct globalheaders {

} globalheaders_t;

#define MAX_SCAN_TIME 5000 // in ms
#define MAX_SCAN_TIME 1500 // in ms


/**
Expand Down Expand Up @@ -140,6 +140,11 @@ headers_complete(globalheaders_t *gh, int64_t qd)
if(!header_complete(ssc, threshold)) {

if(threshold) {
tvhwarn("parser", "stream %d %s%s%s (PID %i) disabled (no packets)",
ssc->ssc_index,
streaming_component_type2txt(ssc->ssc_type),
ssc->ssc_lang[0] ? " " : "", ssc->ssc_lang,
ssc->ssc_pid);
ssc->ssc_disabled = 1;
} else {
return 0;
Expand Down

0 comments on commit 3535d7d

Please sign in to comment.