HTTP: make sure we don't send (and deref) packets before the mime type etc has been send
This commit is contained in:
parent
64b2e51c42
commit
174bc64c69
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue