Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTTP: make sure we don't send (and deref) packets before the mime typ…
…e etc has been send
  • Loading branch information
john-tornblom committed Oct 25, 2012
1 parent 64b2e51 commit 174bc64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webui/webui.c
Expand Up @@ -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:
Expand Down

0 comments on commit 174bc64

Please sign in to comment.