[vlc-commits] vout: win32: remove unused parameter

Steve Lhomme git at videolan.org
Tue Aug 25 09:09:33 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 25 08:45:21 2020 +0200| [29a3d12738566570485bc9cbe7036a40cbf1282f] | committer: Steve Lhomme

vout: win32: remove unused parameter

Unused since ad3c0ba11acf5db25c9dfa5dbce81c51f6b25204.

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

 modules/video_output/win32/common.c     | 2 +-
 modules/video_output/win32/common.h     | 2 +-
 modules/video_output/win32/direct3d11.c | 2 +-
 modules/video_output/win32/direct3d9.c  | 4 ++--
 modules/video_output/win32/glwin32.c    | 2 +-
 modules/video_output/win32/wingdi.c     | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index df02ea9e8d..60fb4e0f25 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -128,7 +128,7 @@ void CommonPlacePicture(vout_display_t *vd, display_win32_area_t *area, vout_dis
 
 #if !VLC_WINSTORE_APP
 /* */
-void CommonWindowClean(vlc_object_t *obj, vout_display_sys_win32_t *sys)
+void CommonWindowClean(vout_display_sys_win32_t *sys)
 {
     if (sys->event) {
         EventThreadStop(sys->event);
diff --git a/modules/video_output/win32/common.h b/modules/video_output/win32/common.h
index 18298b5e47..8eb48f7243 100644
--- a/modules/video_output/win32/common.h
+++ b/modules/video_output/win32/common.h
@@ -69,7 +69,7 @@ typedef struct vout_display_sys_win32_t
 #if !VLC_WINSTORE_APP
 int  CommonWindowInit(vout_display_t *, display_win32_area_t *, vout_display_sys_win32_t *,
                       bool projection_gestures);
-void CommonWindowClean(vlc_object_t *, vout_display_sys_win32_t *);
+void CommonWindowClean(vout_display_sys_win32_t *);
 #endif /* !VLC_WINSTORE_APP */
 int  CommonControl(vout_display_t *, display_win32_area_t *, vout_display_sys_win32_t *, int , va_list );
 
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 06f8194784..a5cf488c4e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -391,7 +391,7 @@ static void Close(vout_display_t *vd)
     Direct3D11Close(vd);
 #if !VLC_WINSTORE_APP
     UnhookWindowsSensors(vd->sys->p_sensors);
-    CommonWindowClean(VLC_OBJECT(vd), &vd->sys->sys);
+    CommonWindowClean(&vd->sys->sys);
 #endif
 }
 
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 04741aaaf3..175ea4da75 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1893,7 +1893,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     return VLC_SUCCESS;
 error:
     Direct3D9Close(vd);
-    CommonWindowClean(VLC_OBJECT(vd), &sys->sys);
+    CommonWindowClean(&sys->sys);
     Direct3D9Destroy(sys);
     free(vd->sys);
     return VLC_EGENERIC;
@@ -1906,7 +1906,7 @@ static void Close(vout_display_t *vd)
 {
     Direct3D9Close(vd);
 
-    CommonWindowClean(VLC_OBJECT(vd), &vd->sys->sys);
+    CommonWindowClean(&vd->sys->sys);
 
     Direct3D9Destroy(vd->sys);
 
diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c
index 07a49418e4..6a0f7468e7 100644
--- a/modules/video_output/win32/glwin32.c
+++ b/modules/video_output/win32/glwin32.c
@@ -195,7 +195,7 @@ static void Close(vout_display_t *vd)
     }
 
     UnhookWindowsSensors(sys->p_sensors);
-    CommonWindowClean(VLC_OBJECT(vd), &sys->sys);
+    CommonWindowClean(&sys->sys);
 
     free(sys);
 }
diff --git a/modules/video_output/win32/wingdi.c b/modules/video_output/win32/wingdi.c
index 9f1fbe7bac..3d09d84fa2 100644
--- a/modules/video_output/win32/wingdi.c
+++ b/modules/video_output/win32/wingdi.c
@@ -143,7 +143,7 @@ static void Close(vout_display_t *vd)
 {
     Clean(vd);
 
-    CommonWindowClean(VLC_OBJECT(vd), &vd->sys->sys);
+    CommonWindowClean(&vd->sys->sys);
 
     free(vd->sys);
 }



More information about the vlc-commits mailing list