vlc | branch: master | Thomas Guillem <[email protected]> | Wed Jun 5 16:27:28 2019 +0200| [82e6e327b622c4544534a7604e47fb550d9cd63d] | committer: Thomas Guillem
vout: spu: remove unused function > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82e6e327b622c4544534a7604e47fb550d9cd63d --- 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 @@ -307,11 +307,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. */ void vout_GetResetStatistic( vout_thread_t *p_vout, unsigned *pi_displayed, 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
