[vlc-devel] [PATCH] demux: adaptive: fix slow buffering

Francois Cartegnie fcvlcdev at free.fr
Mon Jul 31 16:08:05 CEST 2017


Le 28/07/2017 à 13:59, Zhao Zhili a écrit :
> ---
>  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 771fdfa..05acf08 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);

I don't remember if I wanted to add delays, but,

this only changes by 50ms when buffer is FULL,
and removes 150ms when that stream is EOF (which means only updates PCR).

What is the issue ?

Francois


More information about the vlc-devel mailing list