[vlc-devel] [PATCH] es_out: prevent sending two cache event withvalue 1.0
Zhao Zhili
quinkblack at foxmail.com
Sat Nov 11 21:32:00 CET 2017
> On 1 Nov 2017, at 8:09 PM, Zhao Zhili <quinkblack at foxmail.com> wrote:
>
> 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.
>
Ping. Is there anything I misunderstood?
More information about the vlc-devel
mailing list