Closed Bug 1248314 Opened 8 years ago Closed 8 years ago

Remove DecodedStreamData::mStreamInitialized

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We can remove DecodedStreamData::mStreamInitialized by moving track initialization code from DecodedStream::InitTracks() into the constructor of DecodedStreamData which will run once only.

This small refactoring is a step forward to bug 1248312.
Assignee: nobody → jwwang
Blocks: 1248312
Comment on attachment 8719365 [details]
MozReview Request: Bug 1248314. Part 1 - Since OutputStreamManager::Connect/Disconnect is tightly coupled with the constructor/destructor of DecodedStreamData, it would improve cohesion to let DecodedStreamData manage an OutputStreamManager and know when 

https://reviewboard.mozilla.org/r/34949/#review31527
Attachment #8719365 - Flags: review?(roc) → review+
Comment on attachment 8719366 [details]
MozReview Request: Bug 1248314. part 2 - move track initialization code into the constructor of DecodedStreamData. r=roc.

https://reviewboard.mozilla.org/r/34951/#review31529
Attachment #8719366 - Flags: review?(roc) → review+
Thanks!
https://hg.mozilla.org/mozilla-central/rev/2392845b26e4
https://hg.mozilla.org/mozilla-central/rev/2fa44352d55c
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: