Closed
Bug 1193669
Opened 10 years ago
Closed 9 years ago
Make MediaDataDecoder::Shutdown() return a promise
Categories
(Core :: Audio/Video: Playback, defect, P5)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: jya, Assigned: jwwang)
References
Details
This would greatly simply shutting down decoders ; and we remove the need for the use of wait().
This depends on the removal of the SharedDecoderManager
Updated•10 years ago
|
Priority: -- → P5
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jwwang
Assignee | ||
Comment 1•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #0)
> This would greatly simply shutting down decoders ; and we remove the need
> for the use of wait().
Where is the use of wait()?
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to JW Wang [:jwwang] from comment #1)
> (In reply to Jean-Yves Avenard [:jya] from comment #0)
> > This would greatly simply shutting down decoders ; and we remove the need
> > for the use of wait().
> Where is the use of wait()?
This bug was created at the time we used the MP4Reader which had a SharedDecoderManager ; when shutting down the SharedDecoderManager ; it would go through the list of decoder and call shutdown while holding a lock / wait.
We had plenty of deadlocks then.
Assignee | ||
Comment 3•9 years ago
|
||
Now we have no SharedDecoderManager and no wait() code. Is this bug still valid?
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to JW Wang [:jwwang] from comment #3)
> Now we have no SharedDecoderManager and no wait() code. Is this bug still
> valid?
Well, I guess it would help ensuring there's no pending task going ; Shutdown could simply wait for all tasks to complete , things like that.
but if you think it's unnecessary, feel free to close it.
Assignee | ||
Comment 5•9 years ago
|
||
MFR assumes MediaDataDecoder::Shutdown() is sync and continues its call flow after Calling Shutdown(). We will need to also change MFR's assumption if MediaDataDecoder::Shutdown() returns a promise.
When we allow a MediaDataDecoder to create its own task queue, things will be much easier since 2 MediaDataDecoders do not share the same task queue and they will not interfere with each other.
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•