fix 100% cpu usage of rawtsinput when no subscription is active

This commit is contained in:
John Törnblom 2012-09-06 12:10:22 +02:00
parent 8126f2a1b8
commit 4a825789a8

View file

@ -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;