[vlc-commits] fifo: fix FIFO bytes size computation

Rémi Denis-Courmont git at videolan.org
Sat Mar 21 19:56:36 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 21 20:23:01 2015 +0200| [2a0ed1137a39cdceeb3ca94d41b1f858a6d252b7] | committer: Rémi Denis-Courmont

fifo: fix FIFO bytes size computation

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

 src/misc/fifo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/fifo.c b/src/misc/fifo.c
index b93ab11..b6cc0ca 100644
--- a/src/misc/fifo.c
+++ b/src/misc/fifo.c
@@ -166,7 +166,7 @@ void vlc_fifo_QueueUnlocked(block_fifo_t *fifo, block_t *block)
     {
         fifo->pp_last = &block->p_next;
         fifo->i_depth++;
-        fifo->i_size += block->i_size;
+        fifo->i_size += block->i_buffer;
 
         block = block->p_next;
     }



More information about the vlc-commits mailing list