From: Andreas Ă–man Date: Tue, 26 Oct 2010 19:08:45 +0000 (+0000) Subject: Use helpers X-Git-Tag: 2.12~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0faee1df4ab65d4003222e7c2d29804dd962c9d9;p=thirdparty%2Ftvheadend.git Use helpers --- diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index 14421d181..40ac23034 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -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) {