Closed
Bug 1203374
Opened 9 years ago
Closed 9 years ago
Make MediaDecoder::CanPlayThrough run on the main thread
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(2 files)
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Bug 1203374. Part 1 - extract the code of computing canplaythrough so it is reusable.
1. extract MediaDecoder::Statistics to its own file.
2. sort out include orders of MediaDecoderStateMachine.cpp
Attachment #8659065 -
Flags: review?(jyavenard)
Assignee | ||
Comment 2•9 years ago
|
||
Bug 1203374. Part 2 - duplicate the implementation of MediaDecoder::CanPlayThrough so MDSM can call its own CanPlayThrough() on its own thread.
Attachment #8659066 -
Flags: review?(jyavenard)
Comment 3•9 years ago
|
||
Comment on attachment 8659066 [details]
MozReview Request: Bug 1203374. Part 2 - duplicate the implementation of MediaDecoder::CanPlayThrough so MDSM can call its own CanPlayThrough() on its own thread.
https://reviewboard.mozilla.org/r/18749/#review16783
r=me with comment addressed.
::: dom/media/MediaDecoderStateMachine.cpp:2802
(Diff revision 1)
> + ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
Do you need to hold the monitor here?
after all ; GetStatistics() is thread-safe already
and IsRealTime() is only ever accessed on the MDSM task queue
Attachment #8659066 -
Flags: review?(jyavenard) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8659065 [details]
MozReview Request: Bug 1203374. Part 1 - extract the code of computing canplaythrough so it is reusable.
https://reviewboard.mozilla.org/r/18747/#review16785
Attachment #8659065 -
Flags: review?(jyavenard) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://reviewboard.mozilla.org/r/18749/#review16783
> Do you need to hold the monitor here?
> after all ; GetStatistics() is thread-safe already
>
> and IsRealTime() is only ever accessed on the MDSM task queue
It is just a convention that all(most) MDSM functions are run in the task queue with the monitor held. When we finish the refactoring, we will be able to remove the monitor from all functions of MDSM.
Thanks for the review.
Assignee | ||
Comment 6•9 years ago
|
||
Updated•9 years ago
|
Assignee: nobody → jwwang
Updated•9 years ago
|
Priority: -- → P2
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d849c8c7a995
https://hg.mozilla.org/mozilla-central/rev/d27278fc308e
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•