From 3b69376f4007acf85384b77e5c526f859823ebce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Thu, 6 Jan 2011 16:43:24 +0100 Subject: [PATCH] Check if the PAT is sent okey to the http-client. --- src/webui/webui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/webui.c b/src/webui/webui.c index 6316eaf1..f5f9ef56 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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);