]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Check if the PAT is sent okey to the http-client. 9/head
authorJohn Törnblom <john.tornblom@gmail.com>
Thu, 6 Jan 2011 15:43:24 +0000 (16:43 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Thu, 6 Jan 2011 15:46:26 +0000 (16:46 +0100)
src/webui/webui.c

index 6316eaf19d3a93810dcd535a94188579e8689f3f..f5f9ef5600ca00bf7a61b9117d1f98e01915ed43 100644 (file)
@@ -219,6 +219,10 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq)
         pat_ts[4] = 0x00;
         run = (write(hc->hc_fd, pat_ts, 188) == 188);
         
+        if(!run) {
+          break;
+        }
+
         //Send PMT
         memset(pmt_ts, 0xff, 188);
         psi_build_pmt(ss, pmt_ts+5, 183, pcrpid);