[vlc-devel] [PATCH] vout/xcb window: Remove unused function parameter

mehdisabwat at gmail.com mehdisabwat at gmail.com
Thu Aug 22 15:49:31 CEST 2019


From: Mehdi Sabwat <mehdisabwat at gmail.com>

Leftover from fd38297c687, to remove configuration parameter from vout window module activation callback.

---
 modules/video_output/xcb/window.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index cdd68f7dcb..13d7dd0dc4 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -859,7 +859,7 @@ static const struct vout_window_operations em_ops = {
 /**
  * Wrap an existing X11 window to embed the video.
  */
-static int EmOpen (vout_window_t *wnd, const vout_window_cfg_t *cfg)
+static int EmOpen (vout_window_t *wnd)
 {
     int ret = VLC_EGENERIC;
     xcb_window_t window = var_InheritInteger (wnd, "drawable-xid");
@@ -907,7 +907,6 @@ static int EmOpen (vout_window_t *wnd, const vout_window_cfg_t *cfg)
         goto error;
 
     wnd->ops = &em_ops;
-    (void) cfg;
     return VLC_SUCCESS;
 
 error:
-- 
2.23.0



More information about the vlc-devel mailing list