Closed Bug 1053674 Opened 11 years ago Closed 11 years ago

Remove subclass of StateMachine and use task queue directly

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: kinetik, Assigned: kinetik)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Rather than have an ugly subclass of MediaDecoderStateMachine just to get a reference to the reader and task queue, give MediaSourceReader its own task queue (from the same pool as the queue we were using).
Depends on: MSE
Attachment #8472844 - Flags: review?(cpearce) → review+
Attached patch Shut down MSR task queue. (obsolete) — Splinter Review
Attachment #8473524 - Flags: review?(cpearce)
Backed out for mochitest-1 and crashtest bustage https://hg.mozilla.org/integration/mozilla-inbound/rev/a7d98b35305f
Comment on attachment 8473524 [details] [diff] [review] Shut down MSR task queue. Review of attachment 8473524 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/mediasource/MediaSourceReader.cpp @@ +46,5 @@ > } > > +MediaSourceReader::~MediaSourceReader() > +{ > + mTaskQueue->Shutdown(); Do this at the end of your MediaDecoderReader::Shutdown() override. Funny, I had wondered if this would be a problem with your previous patch, but I figured since your Shutdown() override already called Shutdown() on the subreaders, it would be ok. Guess not.. :P
Attachment #8473524 - Flags: review?(cpearce) → review+
Attachment #8473524 - Attachment is obsolete: true
Attachment #8472844 - Attachment is obsolete: true
Summary: Remove subclass of StateMachine and use our own task queue. → Remove subclass of StateMachine and use task queue directly
Simpler approach: use the existing task queue directly, rather than going via MDSM.
Attachment #8474373 - Flags: review?(cpearce) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Blocks: MSE
No longer depends on: MSE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: