]> git.sesse.net Git - vlc/commitdiff
vout: set an i_order to subpictures when they are rendered
authorThomas Guillem <thomas@gllm.fr>
Fri, 20 Feb 2015 09:00:16 +0000 (09:00 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Feb 2015 13:59:48 +0000 (14:59 +0100)
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: Jean-Baptiste Kempf <jb@videolan.org>
src/video_output/vout_subpictures.c

index 544bb5c8657834cbcb0d1eef8eb5341bd626db96..b3f0152896637d770a8a8a8a1336ddad32252989 100644 (file)
@@ -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;