fix 100% cpu usage of rawtsinput when no subscription is active
This commit is contained in:
parent
8126f2a1b8
commit
4a825789a8
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,7 @@ raw_ts_reader(void *aux)
|
|||
{
|
||||
rawts_t *rt = aux;
|
||||
uint8_t tsblock[188];
|
||||
struct timespec tm = {0, 0};
|
||||
int c = 0;
|
||||
int i;
|
||||
|
||||
|
@ -299,6 +300,7 @@ raw_ts_reader(void *aux)
|
|||
c++;
|
||||
process_ts_packet(rt, tsblock);
|
||||
}
|
||||
nanosleep(&tm, NULL);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue