htsp server: do not queue packets with NULL payload

This commit is contained in:
Jaroslav Kysela 2015-02-02 11:50:24 +01:00
parent facee6f9e5
commit d2acb64025

View file

@ -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;