[vlc-commits] spu: remove spu_ProcessMouse() no-op

Rémi Denis-Courmont git at videolan.org
Wed May 15 19:36:26 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 15 20:27:52 2019 +0300| [bd580ade460aa4da5824ad0b8ad4f145b077c963] | committer: Rémi Denis-Courmont

spu: remove spu_ProcessMouse() no-op

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

 src/video_output/video_output.c     |  5 -----
 src/video_output/vout_internal.h    |  1 -
 src/video_output/vout_subpictures.c | 10 ----------
 3 files changed, 16 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index fbdacc55f6..c941a3ded9 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1396,11 +1396,6 @@ static void ThreadProcessMouseState(vout_thread_t *vout,
     /* Translate window coordinates to video coordinates */
     vout_display_TranslateMouseState(vout->p->display, &vid_mouse, win_mouse);
 
-    /* Let SPU handle the mouse */
-    if (likely(vout->p->spu != NULL)
-     && spu_ProcessMouse(vout->p->spu, &vid_mouse, &vout->p->display->source))
-        return;
-
     /* Then pass up the filter chains. */
     m = &vid_mouse;
     vlc_mutex_lock(&vout->p->filter.lock);
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index 129d0993cf..b11fadeeaa 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -263,7 +263,6 @@ void vout_CloseWrapper(vout_thread_t *);
 
 /* */
 void vout_SetSubpictureClock(vout_thread_t *vout, vlc_clock_t *clock);
-int spu_ProcessMouse(spu_t *, const vlc_mouse_t *, const video_format_t *);
 void spu_Attach( spu_t *, input_thread_t *input );
 void spu_Detach( spu_t * );
 void spu_clock_Set(spu_t *, vlc_clock_t *);
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index b7c967ae0a..6f915c179d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1505,16 +1505,6 @@ void spu_clock_SetDelay(spu_t *spu, vlc_tick_t delay)
 }
 
 /**
- * Inform the SPU filters of mouse event
- */
-int spu_ProcessMouse(spu_t *spu,
-                     const vlc_mouse_t *mouse,
-                     const video_format_t *fmt)
-{
-    return VLC_SUCCESS;
-}
-
-/**
  * Display a subpicture
  *
  * Remove the reservation flag of a subpicture, which will cause it to be



More information about the vlc-commits mailing list