[vlc-commits] fifo: add missing mutex assertions

Rémi Denis-Courmont git at videolan.org
Sun Oct 21 13:01:32 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 20 22:53:49 2018 +0300| [f4b03493aee27286499c0c1daadb8f024004d83e] | committer: Rémi Denis-Courmont

fifo: add missing mutex assertions

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

 src/misc/fifo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/fifo.c b/src/misc/fifo.c
index 1c6132f297..312b93799c 100644
--- a/src/misc/fifo.c
+++ b/src/misc/fifo.c
@@ -78,11 +78,13 @@ int vlc_fifo_TimedWaitCond(vlc_fifo_t *fifo, vlc_cond_t *condvar, vlc_tick_t dea
 
 size_t vlc_fifo_GetCount(const vlc_fifo_t *fifo)
 {
+    vlc_mutex_assert(&fifo->lock);
     return fifo->i_depth;
 }
 
 size_t vlc_fifo_GetBytes(const vlc_fifo_t *fifo)
 {
+    vlc_mutex_assert(&fifo->lock);
     return fifo->i_size;
 }
 



More information about the vlc-commits mailing list