Skip to content
Snippets Groups Projects
Commit 8630ba56 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

mmal: deinterlace: use the picture_chain API

Received pictures are chained in ret_pics, first directly then through the
chain_tail local variable which keeps track of the tail of the picture chain.
parent 1b006c28
No related branches found
No related tags found
Loading
......@@ -262,7 +262,7 @@ static picture_t *deinterlace(filter_t * p_filter, picture_t * p_pic)
}
// Return anything that is in the out Q
picture_t ** pp_pic = &ret_pics;
picture_t * chain_tail = ret_pics;
// Advanced di has a 3 frame latency, so if the seq delta is greater
// than that then we are expecting at least two frames of output. Wait
......@@ -284,8 +284,13 @@ static picture_t *deinterlace(filter_t * p_filter, picture_t * p_pic)
}
out_buf = NULL; // Now attached to pic or recycled
*pp_pic = out_pic;
pp_pic = &out_pic->p_next;
if (ret_pics == NULL)
{
ret_pics = out_pic;
chain_tail = out_pic;
}
else
chain_tail = vlc_picture_chain_Append( chain_tail, out_pic );
// Ignore 0 seqs
// Don't think these should actually happen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment