Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcode: handle packets with the NULL payload
  • Loading branch information
perexg committed Feb 10, 2015
1 parent 4cfbb2e commit c475b25
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/plumbing/transcoding.c
Expand Up @@ -1252,11 +1252,18 @@ static void
transcoder_packet(transcoder_t *t, th_pkt_t *pkt)
{
transcoder_stream_t *ts;
streaming_message_t *sm;

LIST_FOREACH(ts, &t->t_stream_list, ts_link) {
if (pkt->pkt_componentindex == ts->ts_index) {
ts->ts_handle_pkt(t, ts, pkt);
return;
if (pkt->pkt_payload) {
ts->ts_handle_pkt(t, ts, pkt);
return;
} else {
sm = streaming_msg_create_pkt(pkt);
streaming_target_deliver2(ts->ts_target, sm);
pkt_ref_dec(pkt);
}
}
}
pkt_ref_dec(pkt);
Expand Down

0 comments on commit c475b25

Please sign in to comment.