p_sys->posx = p_vout->render.i_width / 2 - p_sys->i_width / 2;
}
}
+ else
+ {
+ p_sys->pos = 0;
+ }
/* Try to open the real video output */
msg_Dbg( p_vout, "spawning the real video output" );
p_sys->p_blend->fmt_in.video.i_visible_height =
p_pic->p[Y_PLANE].i_visible_lines;
- /* Just in case the new image would overflow the vout */
- if( (unsigned int)(p_sys->posy + p_sys->i_height)
- > p_vout->render.i_height
- || (unsigned int)(p_sys->posx + p_sys->i_width)
- > p_vout->render.i_width
- || p_sys->pos )
+ if( p_sys->pos )
{
if( p_sys->pos & SUBPICTURE_ALIGN_BOTTOM )
{
{
p_sys->posy = p_vout->render.i_height/2 - p_sys->i_height/2;
}
-
if( p_sys->pos & SUBPICTURE_ALIGN_RIGHT )
{
p_sys->posx = p_vout->render.i_width - p_sys->i_width;