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

git version control git at videolan.org
Fri Oct 23 23:14:54 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 22:31:21 2009 +0300| [1914ca3d38e4c94876fdd596abc0b40188e79168] | committer: Laurent Aimar 

Revert to 50 Mb FIFO limit on ARM

400 Mb buffer would kill almost any such (existing) system.
(cherry picked from commit d0c9158e62752b38e4de62713429f20b682b3a22)

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

 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 f3c6064..c0e9fb5 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -386,7 +386,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