[vlc-commits] demux: adaptive: fix slow buffering

Zhao Zhili git at videolan.org
Tue Aug 1 19:40:53 CEST 2017


vlc | branch: master | Zhao Zhili <wantlamy at gmail.com> | Fri Jul 28 19:54:50 2017 +0800| [c4617ba8932c84f60aac061dec2d9f5862ff8a71] | committer: Francois Cartegnie

demux: adaptive: fix slow buffering

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

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

 modules/demux/adaptive/PlaylistManager.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 771fdfa2e1..05acf08978 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -651,9 +651,9 @@ void PlaylistManager::Run()
         if(i_return != AbstractStream::buffering_lessthanmin)
         {
             mtime_t i_deadline = mdate();
-            if (i_return == AbstractStream::buffering_ongoing)
+            if(i_return == AbstractStream::buffering_ongoing)
                 i_deadline += (CLOCK_FREQ / 20);
-            if (i_return == AbstractStream::buffering_full)
+            else if(i_return == AbstractStream::buffering_full)
                 i_deadline += (CLOCK_FREQ / 10);
             else if(i_return == AbstractStream::buffering_end)
                 i_deadline += (CLOCK_FREQ);



More information about the vlc-commits mailing list