ximagesrc: use XGetSubImage instead of XGetImage, works with remote X

ximagesrc: use XGetSubImage instead of XGetImage, works with remote X
 (on my setup anyway...)
This commit is contained in:
Vincent Penquerc'h 2010-11-28 16:04:35 +00:00 committed by Sebastian Dröge
parent fbd9581f87
commit ac872f61cf

View file

@ -591,9 +591,9 @@ gst_ximage_src_ximage_get (GstXImageSrc * ximagesrc)
#endif /* HAVE_XSHM */
{
GST_DEBUG_OBJECT (ximagesrc, "Retrieving screen using XGetImage");
ximage->ximage = XGetImage (ximagesrc->xcontext->disp, ximagesrc->xwindow,
XGetSubImage (ximagesrc->xcontext->disp, ximagesrc->xwindow,
ximagesrc->startx, ximagesrc->starty, ximagesrc->width,
ximagesrc->height, AllPlanes, ZPixmap);
ximagesrc->height, AllPlanes, ZPixmap, ximage->ximage, 0, 0);
}
#ifdef HAVE_XDAMAGE
}