Commit a1ebb0e4 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

vout: set an i_order to subpictures when they are rendered

This i_order can be used by vout display modules to easily compare subpictures.
That way, a module can bypass a subpicture rendering if it has been previously
rendered.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5e598e57
......@@ -980,6 +980,7 @@ static subpicture_t *SpuRenderSubpictures(spu_t *spu,
subpicture_t *output = subpicture_New(NULL);
if (!output)
return NULL;
output->i_order = pp_subpicture[i_subpicture - 1]->i_order;
output->i_original_picture_width = fmt_dst->i_visible_width;
output->i_original_picture_height = fmt_dst->i_visible_height;
subpicture_region_t **output_last_ptr = &output->p_region;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment