[vlc-devel] commit: Fix video format passed to pf_update_regions. ( Fix asa without direct (Laurent Aimar )
git version control
git at videolan.org
Wed Jul 9 20:23:33 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Jul 9 18:02:01 2008 +0000| [77751c92e41bea05a7127eff21ce9040877fa9a5]
Fix video format passed to pf_update_regions. (Fix asa without direct
rendering)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77751c92e41bea05a7127eff21ce9040877fa9a5
---
src/video_output/vout_subpictures.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 5491fe9..b1a46ff 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -517,7 +517,17 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
if ( p_subpic->p_region ) {
spu_DestroyRegion( p_spu, p_subpic->p_region );
}
- p_subpic->p_region = p_region = p_subpic->pf_update_regions( p_fmt, p_spu, p_subpic, mdate() );
+
+ /* TODO do not reverse the scaling that was done before calling
+ * spu_RenderSubpictures, just pass it along (or do it inside
+ * spu_RenderSubpictures) */
+ video_format_t fmt_org = *p_fmt;
+ fmt_org.i_width =
+ fmt_org.i_visible_width = i_source_video_width;
+ fmt_org.i_height =
+ fmt_org.i_visible_height = i_source_video_height;
+
+ p_subpic->p_region = p_region = p_subpic->pf_update_regions( &fmt_org, p_spu, p_subpic, mdate() );
}
else
{
More information about the vlc-devel
mailing list