Xvideo: fix SHM line count for videos with unaligned height
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 27 Aug 2009 16:36:12 +0000 (19:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 27 Aug 2009 16:36:12 +0000 (19:36 +0300)
modules/video_output/xcb/xvideo.c

index 7f752d9..f0fb9f0 100644 (file)
@@ -583,7 +583,7 @@ static void Display (vout_display_t *vd, picture_t *pic)
                               vd->source.i_visible_height,
                    /* Dst: */ 0, 0, p_sys->width, p_sys->height,
                 /* Memory: */ pic->p->i_pitch / pic->p->i_pixel_pitch,
-                              pic->p->i_lines, false);
+                              pic->p->i_visible_lines, false);
     else
         xcb_xv_put_image (p_sys->conn, p_sys->port, p_sys->window,
                           p_sys->gc, p_sys->id,