{
Display *dpy;
- /* GetStill */
+ /* PutImage */
int port;
unsigned int width;
unsigned int height;
{
int support_format = False;
- if (!(ai[i].type & XvStillMask))
+ if (!(ai[i].type & XvInputMask) ||
+ !(ai[i].type & XvStillMask))
continue;
p = ai[i].base_id;
XvSetPortAttribute (info->dpy, info->port, atom_capture, 1);
XvSetPortAttribute (info->dpy, info->port, atom_fps, 60);
+ XSync (info->dpy, 0);
+
x_error_caught = False;
XSetErrorHandler (old_handler);
x_error_caught = False;
old_handler = XSetErrorHandler (_screen_shot_x_error_handle);
- XvGetStill (info->dpy, info->port, info->pixmap, info->gc,
+ XvPutStill (info->dpy, info->port, info->pixmap, info->gc,
0, 0, info->width, info->height,
0, 0, info->width, info->height);