dvr: only actually write packets if we're past our start time (we don't want to write during preamble)

This commit is contained in:
Andreas Öman 2008-09-20 06:38:42 +00:00
parent e0d2cacf9c
commit be0cc37dd8

View file

@ -405,7 +405,8 @@ dvr_thread(void *aux)
pthread_mutex_unlock(&st->st_mutex);
dvr_thread_new_pkt(de, pr->pr_pkt);
if(dispatch_clock > de->de_start)
dvr_thread_new_pkt(de, pr->pr_pkt);
pkt_ref_dec(pr->pr_pkt);
free(pr);