Re: getFirstInterval

See the erratum E14 at http://www.w3.org/2001/07/REC-SMIL20-20010731-errata .
Hopefully that will clear things up.

On Fri, Aug 22 2003 "Sigurd Lerstad" wrote:

> 
> Hello
> 
> I'm trying to implement the getting of first interval based on the
> pseudo-code given in "Evaluation of begin and end time lists",
> 
> In the "Interval getFirstInterval()" function, if the begin =0 and
> calcActiveEnd() function returns a time equal to begin (AD=0), it will loop
> forever.
> 
> while( TRUE ) // loop till return
> {
>    Set tempBegin = the first value in the begin list that is >= beginAfter.
> 
> 
> ......
> 
> // We have an end - is it after the parent simple begin?
>    if( tempEnd > 0 )
>       return( Interval( tempBegin, tempEnd ) );
>     else
>         beginAfter = tempEnd;    // If tempBegin=0 and calcActiveEnd also
> returned 0, this will make it loop forever, because
> // the Set tempBegin..... above will find the same begin value over and over
> again.
> }
> 
> Is the point that calcActiveEnd() never should return a time equal to the
> begin?
> 
> I seem to remember having read that if the begin and end time of an interval
> is the same, it will fire a begin event and an end event. I don't remember
> right now where in the spec I saw that, but if it is true that calcActiveEnd
> never returns an AD=0, then that sentence is pointless, and if AD can be 0,
> then there's a bug in the getFirstInterval function that makes it loop
> forever
> 
> Have I overlooked something?
> 
> thanks,
> 
> --
> Sigurd Lerstad
> 
> 
> 

-- Sjoerd Mullender <sjoerd@acm.org>

Received on Sunday, 24 August 2003 06:03:50 UTC