Skip to content
Permalink
Browse files

[giow] (0) Make sure that chapter trees don't have negative-duration …

…chapters.

Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7068 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Apr 25, 2012
1 parent 13a382c commit 5bfcd2567a563a5ec79a7897f326b1538719255a
Showing with 12 additions and 0 deletions.
  1. +4 −0 complete.html
  2. +4 −0 index
  3. +4 −0 source
<ol><li><p>Let <var title="">list</var> be a copy of the <a href=#text-track-list-of-cues title="text track list of cues">list of cues</a> of the
<a href=#text-track>text track</a> being processed.</li>

<li><p>Remove from <var title="">list</var> any <a href=#text-track-cue>text track
cue</a> whose <a href=#text-track-cue-end-time>text track cue end time</a> is before its
<a href=#text-track-cue-start-time>text track cue start time</a>.</li>

<li><p>Let <var title="">output</var> be an empty list of chapters,
where a chapter is a record consisting of a start time, an end
time, a title, and a (potentially empty) list of nested chapters.
4 index
<ol><li><p>Let <var title="">list</var> be a copy of the <a href=#text-track-list-of-cues title="text track list of cues">list of cues</a> of the
<a href=#text-track>text track</a> being processed.</li>

<li><p>Remove from <var title="">list</var> any <a href=#text-track-cue>text track
cue</a> whose <a href=#text-track-cue-end-time>text track cue end time</a> is before its
<a href=#text-track-cue-start-time>text track cue start time</a>.</li>

<li><p>Let <var title="">output</var> be an empty list of chapters,
where a chapter is a record consisting of a start time, an end
time, a title, and a (potentially empty) list of nested chapters.
4 source
title="text track list of cues">list of cues</span> of the
<span>text track</span> being processed.</p></li>

<li><p>Remove from <var title="">list</var> any <span>text track
cue</span> whose <span>text track cue end time</span> is before its
<span>text track cue start time</span>.</p></li>

<li><p>Let <var title="">output</var> be an empty list of chapters,
where a chapter is a record consisting of a start time, an end
time, a title, and a (potentially empty) list of nested chapters.

0 comments on commit 5bfcd25

Please sign in to comment.
You can’t perform that action at this time.