This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20953 - The segment parser loop fires an updateend event but is consumed in the stream append loop, which also fires updateend
Summary: The segment parser loop fires an updateend event but is consumed in the strea...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Aaron Colwell (c)
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-11 17:15 UTC by Adrian Bateman [MSFT]
Modified: 2013-02-19 01:04 UTC (History)
3 users (show)

See Also:


Attachments

Description Adrian Bateman [MSFT] 2013-02-11 17:15:16 UTC
Step 9 of the Segment Parser Loop [1] fires updateend. The Stream Append Loop [2] calls the segment parser loop in step 9 and then fires updateend from step 12. I think we need to break out the updateend step from the Segment Parser Loop into its callers.

[1] https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#sourcebuffer-segment-parser-loop
[2] https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#sourcebuffer-stream-append-loop
Comment 1 Aaron Colwell (c) 2013-02-19 01:04:25 UTC
Changes committed.
https://dvcs.w3.org/hg/html-media/rev/d5956e93b991

Moved event firing logic out of the loop and up into the appendArrayBuffer() call.