[vlc-devel] commit: Revert to 50 Mb FIFO limit on ARM ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 21:32:10 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 22:31:21 2009 +0300| [d0c9158e62752b38e4de62713429f20b682b3a22] | committer: Rémi Denis-Courmont 

Revert to 50 Mb FIFO limit on ARM

400 Mb buffer would kill almost any such (existing) system.

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

 src/input/decoder.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index ae48f10..6ac1bc8 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -373,7 +373,11 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
         if( !p_owner->b_buffering )
             block_FifoPace( p_owner->p_fifo, 10, SIZE_MAX );
     }
+#ifdef __arm__
+    else if( block_FifoSize( p_owner->p_fifo ) > 50000000 /* 50 MB */ )
+#else
     else if( block_FifoSize( p_owner->p_fifo ) > 400000000 /* 400 MB, ie ~ 50mb/s for 60s */ )
+#endif
     {
         /* FIXME: ideally we would check the time amount of data
          * in the FIFO instead of its size. */




More information about the vlc-devel mailing list