[vlc-commits] vout: set an i_order to subpictures when they are rendered
Thomas Guillem
git at videolan.org
Fri Feb 20 15:18:53 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 20 09:00:16 2015 +0000| [a1ebb0e433eefc1acf661213266eef7d81663bb5] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1ebb0e433eefc1acf661213266eef7d81663bb5
---
src/video_output/vout_subpictures.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 544bb5c..b3f0152 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -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;
More information about the vlc-commits
mailing list