[vlc-commits] picture_fifo: remove unused picture_fifo_OffsetDate

Steve Lhomme git at videolan.org
Mon Sep 21 07:13:49 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 16 14:03:58 2020 +0200| [a8321cde7b825b2e03e979a90ecf4d5cae3d8011] | committer: Steve Lhomme

picture_fifo: remove unused picture_fifo_OffsetDate

Anyone who needs this can probably handle the shift on their side.

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

 include/vlc_picture_fifo.h | 6 ------
 src/libvlccore.sym         | 1 -
 src/misc/picture_fifo.c    | 9 ---------
 3 files changed, 16 deletions(-)

diff --git a/include/vlc_picture_fifo.h b/include/vlc_picture_fifo.h
index 746cbeb23b..a5b44e9d87 100644
--- a/include/vlc_picture_fifo.h
+++ b/include/vlc_picture_fifo.h
@@ -79,11 +79,5 @@ VLC_API void picture_fifo_Push( picture_fifo_t *, picture_t * );
  */
 VLC_API void picture_fifo_Flush( picture_fifo_t *, vlc_tick_t date, bool flush_before );
 
-/**
- * It applies a delta on all the picture timestamp.
- */
-VLC_API void picture_fifo_OffsetDate( picture_fifo_t *, vlc_tick_t delta );
-
-
 #endif /* VLC_PICTURE_FIFO_H */
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 023203ea4f..2f9abb6dae 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -309,7 +309,6 @@ picture_Export
 picture_fifo_Delete
 picture_fifo_Flush
 picture_fifo_New
-picture_fifo_OffsetDate
 picture_fifo_Peek
 picture_fifo_Pop
 picture_fifo_Push
diff --git a/src/misc/picture_fifo.c b/src/misc/picture_fifo.c
index bda20f5d8f..3c0f6d3df9 100644
--- a/src/misc/picture_fifo.c
+++ b/src/misc/picture_fifo.c
@@ -130,15 +130,6 @@ void picture_fifo_Flush(picture_fifo_t *fifo, vlc_tick_t date, bool flush_before
     while ((picture = PictureFifoPop(&tmp)) != NULL)
         picture_Release(picture);
 }
-void picture_fifo_OffsetDate(picture_fifo_t *fifo, vlc_tick_t delta)
-{
-    vlc_mutex_lock(&fifo->lock);
-    for (picture_t *picture = fifo->first; picture != NULL;) {
-        picture->date += delta;
-        picture = picture->p_next;
-    }
-    vlc_mutex_unlock(&fifo->lock);
-}
 void picture_fifo_Delete(picture_fifo_t *fifo)
 {
     picture_fifo_Flush(fifo, VLC_TICK_INVALID, true);



More information about the vlc-commits mailing list