[vlc-commits] kva: remove manage callback

Rémi Denis-Courmont git at videolan.org
Sun May 20 19:51:15 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 17 19:41:25 2018 +0300| [11691b23b999ba6a67367b81b36fa9f0e842fde5] | committer: Rémi Denis-Courmont

kva: remove manage callback

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

 modules/video_output/kva.c | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 0c633bf01e..34b9aae19a 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -116,7 +116,6 @@ typedef struct
 static picture_pool_t *Pool   (vout_display_t *, unsigned);
 static void            Display(vout_display_t *, picture_t *, subpicture_t * );
 static int             Control(vout_display_t *, int, va_list);
-static void            Manage (vout_display_t *);
 
 static int  OpenDisplay ( vout_display_t *, video_format_t * );
 static void CloseDisplay( vout_display_t * );
@@ -269,7 +268,6 @@ static void PMThread( void *arg )
     vd->prepare = NULL;
     vd->display = Display;
     vd->control = Control;
-    vd->manage  = Manage;
 
     /* Prevent SIG_FPE */
     _control87(MCW_EM, MCW_EM);
@@ -384,21 +382,10 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
 static void Display( vout_display_t *vd, picture_t *picture,
                      subpicture_t *subpicture )
 {
-    VLC_UNUSED( vd );
-    VLC_UNUSED( subpicture );
+    vout_display_sys_t * sys = vd->sys;
 
+    VLC_UNUSED( subpicture );
     picture_Release( picture );
-}
-
-/*****************************************************************************
- * Manage: handle Sys events
- *****************************************************************************
- * This function should be called regularly by video output thread. It returns
- * a non null value if an error occurred.
- *****************************************************************************/
-static void Manage( vout_display_t *vd )
-{
-    vout_display_sys_t * sys = vd->sys;
 
     /* Let a window procedure manage instead because if resizing a frame window
      * here, WM_SIZE is not sent to its child window.



More information about the vlc-commits mailing list