htsp server: do not queue packets with NULL payload
This commit is contained in:
parent
facee6f9e5
commit
d2acb64025
1 changed files with 3 additions and 0 deletions
|
@ -3234,6 +3234,9 @@ htsp_stream_deliver(htsp_subscription_t *hs, th_pkt_t *pkt)
|
|||
int qlen = hs->hs_q.hmq_payload;
|
||||
size_t payloadlen;
|
||||
|
||||
if(pkt->pkt_payload == NULL)
|
||||
return;
|
||||
|
||||
if(!htsp_is_stream_enabled(hs, pkt->pkt_componentindex)) {
|
||||
pkt_ref_dec(pkt);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue