]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
globalheaders: apply header only when the packet is correct
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 Aug 2016 10:25:53 +0000 (12:25 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Aug 2016 10:25:53 +0000 (12:25 +0200)
src/plumbing/globalheaders.c

index c837eb3355a035ec540b8d0fb8cd49fc68adbd3a..13b02325919f38e1d22a5254eeab5b2dbc45951f 100644 (file)
@@ -297,7 +297,8 @@ gh_hold(globalheaders_t *gh, streaming_message_t *sm)
 
     pkt_ref_inc(pkt);
 
-    apply_header(ssc, pkt);
+    if (pkt->pkt_err == 0)
+      apply_header(ssc, pkt);
 
     pktref_enqueue(&gh->gh_holdq, pkt);