[vlc-devel] [PATCH] es_out: prevent sending two cache event with value 1.0

Francois Cartegnie fcvlcdev at free.fr
Wed Nov 1 12:27:40 CET 2017


Le 01/11/2017 à 12:19, Zhao Zhili a écrit :

> @@ -648,7 +648,7 @@ static void EsOutDecodersStopBuffering( es_out_t 
> *out, bool b_forced )
>                                           i_preroll_duration +
> p_sys->i_buffering_extra_stream - p_sys->i_buffering_extra_initial;
> 
> -    if( i_stream_duration <= i_buffering_duration && !b_forced )
> +    if( i_stream_duration < i_buffering_duration && !b_forced )
>      {

breaks case when full buffering is done in a single run.


-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list