]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/xcbgrab.c
Merge commit '64f7575fbd64e5b65d5c644347408588c776f1fe'
[ffmpeg] / libavdevice / xcbgrab.c
index c3cc8484ccfe16735a5b6379804ec12bddd26897..e26448ccfb8735d75697a5704758190dbe8fc158 100644 (file)
@@ -106,14 +106,13 @@ static int xcbgrab_reposition(AVFormatContext *s,
                               xcb_get_geometry_reply_t *geo)
 {
     XCBGrabContext *c = s->priv_data;
-    int x, y, p_x, p_y;
+    int x = c->x, y = c->y;
     int w = c->width, h = c->height, f = c->follow_mouse;
+    int p_x, p_y;
 
     if (!p || !geo)
         return AVERROR(EIO);
 
-    x = c->x;
-    y = c->y;
     p_x = p->win_x;
     p_y = p->win_y;