[vlc-devel] [PATCH 1/2] picture_fifo: remove unused picture_fifo_OffsetDate
Steve Lhomme
robux4 at ycbcr.xyz
Fri Sep 18 16:29:36 CEST 2020
Anyone who needs this can probably handle the shift on their side.
---
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 746cbeb23b3..a5b44e9d877 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 31fcd37cbab..d82da661f5d 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 bda20f5d8f7..3c0f6d3df9e 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);
--
2.26.2
More information about the vlc-devel
mailing list