[vlc-commits] xcb: remove unused parameter

Rémi Denis-Courmont git at videolan.org
Sat Jun 8 19:17:14 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  8 20:16:32 2013 +0300| [281553a223d50e0e3afd7c32b939a1ca80130ec4] | committer: Rémi Denis-Courmont

xcb: remove unused parameter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=281553a223d50e0e3afd7c32b939a1ca80130ec4
---

 modules/video_output/xcb/events.c  |    2 --
 modules/video_output/xcb/glx.c     |    3 +--
 modules/video_output/xcb/x11.c     |    3 +--
 modules/video_output/xcb/xcb_vlc.h |    2 +-
 modules/video_output/xcb/xvideo.c  |    4 +---
 5 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/modules/video_output/xcb/events.c b/modules/video_output/xcb/events.c
index 7597d41..998d13d 100644
--- a/modules/video_output/xcb/events.c
+++ b/modules/video_output/xcb/events.c
@@ -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;
 
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 4a7efa0..f6b3b5b 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -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);
diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index 64d4ded..2210875 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -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);
diff --git a/modules/video_output/xcb/xcb_vlc.h b/modules/video_output/xcb/xcb_vlc.h
index 0296d12..81931e9 100644
--- a/modules/video_output/xcb/xcb_vlc.h
+++ b/modules/video_output/xcb/xcb_vlc.h
@@ -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 *);
 
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 6e732d5..fcb670e 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -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);



More information about the vlc-commits mailing list