]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use helpers
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 19:08:45 +0000 (19:08 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 19:08:45 +0000 (19:08 +0000)
src/plumbing/tsfix.c

index 14421d18165cc0522446393923d1af8995032e7a..40ac23034920bbf220d01354028d0a4f380fa7cd 100644 (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) {