From: John Törnblom Date: Thu, 25 Oct 2012 17:37:34 +0000 (+0200) Subject: HTTP: make sure we don't send (and deref) packets before the mime type etc has been... X-Git-Tag: v3.5~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=174bc64c69dcf6bd87f7b6708fe687f84348785b;p=thirdparty%2Ftvheadend.git HTTP: make sure we don't send (and deref) packets before the mime type etc has been send --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 7919f0401..35ffce49a 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -196,8 +196,10 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, switch(sm->sm_type) { case SMT_MPEGTS: case SMT_PACKET: - muxer_write_pkt(mux, sm->sm_type, sm->sm_data); - sm->sm_data = NULL; + if(started) { + muxer_write_pkt(mux, sm->sm_type, sm->sm_data); + sm->sm_data = NULL; + } break; case SMT_START: