[vlc-commits] window: remove useless vout_window_New() parameter

Rémi Denis-Courmont git at videolan.org
Sat Dec 8 17:09:46 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec  8 16:18:22 2018 +0200| [602c77c0442884cda5cb93445072da6d67a6616d] | committer: Rémi Denis-Courmont

window: remove useless vout_window_New() parameter

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

 include/vlc_vout_window.h | 2 +-
 src/video_output/opengl.c | 2 +-
 src/video_output/window.c | 3 +--
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index dbfb1be43e..42e483e56b 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -233,7 +233,7 @@ struct vout_window_t {
  * @param module plugin name (usually "$window")
  * @note don't use it inside a "vout display" module
  */
-VLC_API vout_window_t * vout_window_New(vlc_object_t *, const char *module, const vout_window_cfg_t *, const vout_window_owner_t *);
+VLC_API vout_window_t * vout_window_New(vlc_object_t *, const char *module, const vout_window_owner_t *);
 
 /**
  * Deletes a window created by vout_window_New().
diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c
index b0ceb02119..c288fd83b4 100644
--- a/src/video_output/opengl.c
+++ b/src/video_output/opengl.c
@@ -143,7 +143,7 @@ vlc_gl_t *vlc_gl_surface_Create(vlc_object_t *obj,
     };
     char *modlist = var_InheritString(obj, "window");
 
-    vout_window_t *surface = vout_window_New(obj, modlist, cfg, &owner);
+    vout_window_t *surface = vout_window_New(obj, modlist, &owner);
     free(modlist);
     if (surface == NULL)
         goto error;
diff --git a/src/video_output/window.c b/src/video_output/window.c
index d9ce200abc..37ccd7a324 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -54,7 +54,6 @@ static int vout_window_start(void *func, va_list ap)
 }
 
 vout_window_t *vout_window_New(vlc_object_t *obj, const char *module,
-                               const vout_window_cfg_t *cfg,
                                const vout_window_owner_t *owner)
 {
     window_t *w = vlc_custom_create(obj, sizeof(*w), "window");
@@ -393,7 +392,7 @@ vout_window_t *vout_display_window_New(vout_thread_t *vout,
     var_Create(vout, "window-fullscreen", VLC_VAR_BOOL);
     var_Create(vout, "window-fullscreen-output", VLC_VAR_STRING);
 
-    window = vout_window_New((vlc_object_t *)vout, modlist, cfg, &owner);
+    window = vout_window_New((vlc_object_t *)vout, modlist, &owner);
     free(modlist);
 
     if (window != NULL) {



More information about the vlc-commits mailing list