Closed Bug 983293 Opened 11 years ago Closed 11 years ago

[webvtt] Refactor TextTrack initialization

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: reyre, Assigned: reyre)

References

Details

Attachments

(5 files, 3 obsolete files)

Currently we're initializing TextTracks and setting ReadyState and Mode values in a number of disjointed places. We're also initializing them with unnecessary default values. Making it clear what part of the code triggers a TextTrack's ready state or mode value to be set will help us prevent future problems and improve code readability.
Assignee: nobody → rick.eyre
Status: NEW → ASSIGNED
Attachment #8390735 - Flags: review?(cpearce)
Attachment #8390735 - Flags: review?(cpearce) → review+
Attachment #8390736 - Flags: review?(cpearce) → review+
Attachment #8390737 - Flags: review?(cpearce) → review+
Attachment #8390738 - Flags: review?(cpearce) → review+
Attachment #8390739 - Flags: review?(cpearce) → review+
I had to rename two of the values in the TextTrackReadyState enum because we were having problems on Linux caused by there being another name called 'None'. I've changed the names to be a bit more closer to spec as well.
Attachment #8390737 - Attachment is obsolete: true
Attachment #8392859 - Flags: review?(cpearce)
Updated to have the new enum names.
Attachment #8390738 - Attachment is obsolete: true
Attachment #8392860 - Flags: review?(cpearce)
Updated to have the new names.
Attachment #8390739 - Attachment is obsolete: true
Attachment #8392861 - Flags: review?(cpearce)
Attachment #8392859 - Flags: review?(cpearce) → review+
Attachment #8392860 - Flags: review?(cpearce) → review+
Attachment #8392861 - Flags: review?(cpearce) → review+
Thanks for review Chris. Try looks green: https://tbpl.mozilla.org/?tree=Try&rev=c9d3514298fb
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: