Use helpers

This commit is contained in:
Andreas Öman 2010-10-26 19:08:45 +00:00
parent b7cc8e2961
commit 0faee1df4a

View file

@ -221,12 +221,7 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
{
th_pktref_t *pr, *srch;
/* Reference count is transfered to queue */
pr = malloc(sizeof(th_pktref_t));
pr->pr_pkt = pkt;
TAILQ_INSERT_TAIL(&tf->tf_ptsq, pr, pr_link);
/* */
pktref_enqueue(&tf->tf_ptsq, pkt);
while((pr = TAILQ_FIRST(&tf->tf_ptsq)) != NULL) {