transcode: fix wrong memory access introduced by previous patch

This commit is contained in:
Jaroslav Kysela 2015-02-10 20:43:52 +01:00
parent c475b2531b
commit cd1f081909

View file

@ -1258,12 +1258,12 @@ transcoder_packet(transcoder_t *t, th_pkt_t *pkt)
if (pkt->pkt_componentindex == ts->ts_index) {
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);
}
return;
}
}
pkt_ref_dec(pkt);