Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: do not queue packets with NULL payload
  • Loading branch information
perexg committed Feb 2, 2015
1 parent facee6f commit d2acb64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/htsp_server.c
Expand Up @@ -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;
Expand Down

0 comments on commit d2acb64

Please sign in to comment.