splitter: remove unused parameter to mouse callback
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Jan 2019 13:26:25 +0000 (15:26 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Jan 2019 13:54:57 +0000 (15:54 +0200)
include/vlc_video_splitter.h
modules/video_splitter/panoramix.c
modules/video_splitter/wall.c

index f784741..3dad42a 100644 (file)
@@ -93,8 +93,7 @@ struct video_splitter_t
     int             (*pf_filter)( video_splitter_t *, picture_t *pp_dst[],
                                   picture_t *p_src );
     int             (*pf_mouse) ( video_splitter_t *, vlc_mouse_t *,
-                                  int i_index,
-                                  const vlc_mouse_t *p_old, const vlc_mouse_t *p_new );
+                                  int i_index, const vlc_mouse_t *p_new );
 
     void *p_sys;
 };
@@ -145,15 +144,14 @@ static inline int video_splitter_Filter( video_splitter_t *p_splitter,
 }
 static inline int video_splitter_Mouse( video_splitter_t *p_splitter,
                                         vlc_mouse_t *p_mouse,
-                                        int i_index,
-                                        const vlc_mouse_t *p_old, const vlc_mouse_t *p_new )
+                                        int i_index, const vlc_mouse_t *p_new )
 {
     if( !p_splitter->pf_mouse )
     {
         *p_mouse = *p_new;
         return VLC_SUCCESS;
     }
-    return p_splitter->pf_mouse( p_splitter, p_mouse, i_index, p_old, p_new );
+    return p_splitter->pf_mouse( p_splitter, p_mouse, i_index, p_new );
 }
 
 #endif /* VLC_VIDEO_SPLITTER_H */
index 9d122b6..591415f 100644 (file)
@@ -299,8 +299,7 @@ typedef struct
 static int Filter( video_splitter_t *, picture_t *pp_dst[], picture_t * );
 
 static int Mouse( video_splitter_t *, vlc_mouse_t *,
-                  int i_index,
-                  const vlc_mouse_t *p_old, const vlc_mouse_t *p_new );
+                  int i_index, const vlc_mouse_t *p_new );
 
 
 /* */
@@ -786,11 +785,9 @@ static int Filter( video_splitter_t *p_splitter, picture_t *pp_dst[], picture_t
  * It converts mouse events
  */
 static int Mouse( video_splitter_t *p_splitter, vlc_mouse_t *p_mouse,
-                  int i_index,
-                  const vlc_mouse_t *p_old, const vlc_mouse_t *p_new )
+                  int i_index, const vlc_mouse_t *p_new )
 {
     video_splitter_sys_t *p_sys = p_splitter->p_sys;
-    VLC_UNUSED(p_old);
 
     for( int y = 0; y < p_sys->i_row; y++ )
     {
index 8436066..0328043 100644 (file)
@@ -109,8 +109,7 @@ typedef struct
 
 static int Filter( video_splitter_t *, picture_t *pp_dst[], picture_t * );
 static int Mouse( video_splitter_t *, vlc_mouse_t *,
-                  int i_index,
-                  const vlc_mouse_t *p_old, const vlc_mouse_t *p_new );
+                  int i_index, const vlc_mouse_t *p_new );
 
 /**
  * This function allocates and initializes a Wall splitter module.
@@ -424,10 +423,8 @@ static int Filter( video_splitter_t *p_splitter, picture_t *pp_dst[], picture_t
     return VLC_SUCCESS;
 }
 static int Mouse( video_splitter_t *p_splitter, vlc_mouse_t *p_mouse,
-                  int i_index,
-                  const vlc_mouse_t *p_old, const vlc_mouse_t *p_new )
+                  int i_index, const vlc_mouse_t *p_new )
 {
-    VLC_UNUSED(p_old);
     video_splitter_sys_t *p_sys = p_splitter->p_sys;
 
     for( int y = 0; y < p_sys->i_row; y++ )