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

Zhao Zhili quinkblack at foxmail.com
Wed Nov 1 13:09:50 CET 2017


On 2017年11月01日 19:27, Francois Cartegnie wrote:
> 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.
>
>

If full buffering is done in a single run and i_stream_duration > i_buffering_duration
nothing changed. It only changed the behavior when i_stream_duration equal to
i_buffering_duration exactly which is a rare case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20171101/b2567502/attachment.html>


More information about the vlc-devel mailing list