globalheaders: fix again the wrong packet refcounting

This commit is contained in:
Jaroslav Kysela 2014-09-22 17:12:31 +02:00
parent df1cf7dffe
commit 2ea3c96d3f

View file

@ -172,7 +172,8 @@ convertpkt(streaming_start_component_t *ssc, th_pkt_t *pkt, int hold)
switch(ssc->ssc_type) {
case SCT_H264:
r = avc_convert_pkt(pkt);
pkt_ref_dec(pkt);
if (!hold)
pkt_ref_dec(pkt);
break;
default: