Commit 1185b897 authored by Gildas Bazin's avatar Gildas Bazin

* src/video_output/vout_subpictures.c: use p_vout->output instead of...

* src/video_output/vout_subpictures.c: use p_vout->output instead of p_vout->render where necessary.
parent 84f46913
...@@ -369,12 +369,6 @@ void vout_RenderSubPictures( vout_thread_t *p_vout, picture_t *p_pic_dst, ...@@ -369,12 +369,6 @@ void vout_RenderSubPictures( vout_thread_t *p_vout, picture_t *p_pic_dst,
{ {
p_vout->p_blend = vlc_object_create( p_vout, sizeof(filter_t) ); p_vout->p_blend = vlc_object_create( p_vout, sizeof(filter_t) );
vlc_object_attach( p_vout->p_blend, p_vout ); vlc_object_attach( p_vout->p_blend, p_vout );
p_vout->p_blend->fmt_out.video.i_width =
p_vout->p_blend->fmt_out.video.i_visible_width =
p_vout->render.i_width;
p_vout->p_blend->fmt_out.video.i_height =
p_vout->p_blend->fmt_out.video.i_visible_height =
p_vout->render.i_height;
p_vout->p_blend->fmt_out.video.i_x_offset = p_vout->p_blend->fmt_out.video.i_x_offset =
p_vout->p_blend->fmt_out.video.i_y_offset = 0; p_vout->p_blend->fmt_out.video.i_y_offset = 0;
p_vout->p_blend->fmt_out.video.i_aspect = p_vout->p_blend->fmt_out.video.i_aspect =
...@@ -542,6 +536,14 @@ void vout_RenderSubPictures( vout_thread_t *p_vout, picture_t *p_pic_dst, ...@@ -542,6 +536,14 @@ void vout_RenderSubPictures( vout_thread_t *p_vout, picture_t *p_pic_dst,
p_vout->pi_alpha[3]; p_vout->pi_alpha[3];
} }
/* Update the output picture size */
p_vout->p_blend->fmt_out.video.i_width =
p_vout->p_blend->fmt_out.video.i_visible_width =
p_vout->output.i_width;
p_vout->p_blend->fmt_out.video.i_height =
p_vout->p_blend->fmt_out.video.i_visible_height =
p_vout->output.i_height;
p_vout->p_blend->pf_video_blend( p_vout->p_blend, p_pic_dst, p_vout->p_blend->pf_video_blend( p_vout->p_blend, p_pic_dst,
p_pic_src, &p_region->picture, i_x_offset, i_y_offset ); p_pic_src, &p_region->picture, i_x_offset, i_y_offset );
......
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