]> git.sesse.net Git - vlc/commitdiff
xcb: remove unused parameter
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Jun 2013 17:16:32 +0000 (20:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Jun 2013 17:17:09 +0000 (20:17 +0300)
modules/video_output/xcb/events.c
modules/video_output/xcb/glx.c
modules/video_output/xcb/x11.c
modules/video_output/xcb/xcb_vlc.h
modules/video_output/xcb/xvideo.c

index 7597d41fbe3f3f0bde94e9f3c821047d74f71f74..998d13ddb55a8af20b87f7f6dc3975eb30ff0781 100644 (file)
@@ -128,7 +128,6 @@ static const xcb_screen_t *FindScreen (vlc_object_t *obj,
 vout_window_t *XCB_parent_Create (vout_display_t *vd,
                                   xcb_connection_t **restrict pconn,
                                   const xcb_screen_t **restrict pscreen,
-                                  uint8_t *restrict pdepth,
                                   uint16_t *restrict pwidth,
                                   uint16_t *restrict pheight)
 {
@@ -164,7 +163,6 @@ vout_window_t *XCB_parent_Create (vout_display_t *vd,
         msg_Err (vd, "window not valid");
         goto error;
     }
-    *pdepth = geo->depth;
     *pwidth = geo->width;
     *pheight = geo->height;
 
index 4a7efa06ff684023b47defacec3ef349589f29e9..f6b3b5b4034fd57754f1adf8054f90552f206a4c 100644 (file)
@@ -180,8 +180,7 @@ static int Open (vlc_object_t *obj)
     xcb_connection_t *conn;
     const xcb_screen_t *scr;
     uint16_t width, height;
-    uint8_t depth;
-    sys->embed = XCB_parent_Create (vd, &conn, &scr, &depth, &width, &height);
+    sys->embed = XCB_parent_Create (vd, &conn, &scr, &width, &height);
     if (sys->embed == NULL)
     {
         free (sys);
index 64d4ded3054c5a67565ba05e033a58ac292222e3..2210875343f3c907b405f43090daab43c6a86645 100644 (file)
@@ -116,8 +116,7 @@ static int Open (vlc_object_t *obj)
     xcb_connection_t *conn;
     const xcb_screen_t *scr;
     uint16_t width, height;
-    sys->embed = XCB_parent_Create (vd, &conn, &scr,
-                                    &(uint8_t){ 0 }, &width, &height);
+    sys->embed = XCB_parent_Create (vd, &conn, &scr, &width, &height);
     if (sys->embed == NULL)
     {
         free (sys);
index 0296d127a88a982ec3828afc2752cd4d386b5697..81931e9497dc55d7d0521043adcef139cd66beee 100644 (file)
@@ -45,7 +45,7 @@ int XCB_error_Check (vout_display_t *, xcb_connection_t *conn,
 
 struct vout_window_t *XCB_parent_Create (vout_display_t *obj,
                                          xcb_connection_t **,
-                                         const xcb_screen_t **, uint8_t *depth,
+                                         const xcb_screen_t **,
                                          uint16_t *width, uint16_t *height);
 xcb_cursor_t XCB_cursor_Create (xcb_connection_t *, const xcb_screen_t *);
 
index 6e732d50b3729bdfd67e3664848b44f9e5ee52fc..fcb670e67b1c45758a4da6cd5f8c37564639bddc 100644 (file)
@@ -387,9 +387,7 @@ static int Open (vlc_object_t *obj)
     xcb_connection_t *conn;
     const xcb_screen_t *screen;
     uint16_t width, height;
-    uint8_t depth;
-    p_sys->embed = XCB_parent_Create (vd, &conn, &screen,
-                                      &depth, &width, &height);
+    p_sys->embed = XCB_parent_Create (vd, &conn, &screen, &width, &height);
     if (p_sys->embed == NULL)
     {
         free (p_sys);