mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
fbd9581f87
commit
ac872f61cf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue