[vlc-devel] [PATCH 2/5] vout: spu: remove unused function

Thomas Guillem thomas at gllm.fr
Thu Jun 6 08:28:03 CEST 2019


---
 src/video_output/vout_internal.h    |  5 -----
 src/video_output/vout_subpictures.c | 19 -------------------
 2 files changed, 24 deletions(-)

diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index e0d29553dc..56b4876f8b 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -306,11 +306,6 @@ void vout_ChangeSpuDelay( vout_thread_t *, vlc_tick_t delay );
  */
 void vout_MouseState(vout_thread_t *, const vlc_mouse_t *);
 
-/**
- * This function will apply an offset on subtitle subpicture.
- */
-void spu_OffsetSubtitleDate( spu_t *p_spu, vlc_tick_t i_duration );
-
 /**
  * This function will return and reset internal statistics.
  */
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 108e0a46c6..ce0340ae15 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1756,25 +1756,6 @@ subpicture_t *spu_Render(spu_t *spu,
     return render;
 }
 
-void spu_OffsetSubtitleDate(spu_t *spu, vlc_tick_t duration)
-{
-    spu_private_t *sys = spu->p;
-
-    vlc_mutex_lock(&sys->lock);
-    for (int i = 0; i < VOUT_MAX_SUBPICTURES; i++)
-    {
-        subpicture_t *current = sys->heap.entries[i];
-
-        if (current && current->b_subtitle) {
-            if (current->i_start > 0)
-                current->i_start += duration;
-            if (current->i_stop > 0)
-                current->i_stop  += duration;
-        }
-    }
-    vlc_mutex_unlock(&sys->lock);
-}
-
 ssize_t spu_RegisterChannel(spu_t *spu)
 {
     spu_private_t *sys = spu->p;
-- 
2.20.1



More information about the vlc-devel mailing list