Closed Bug 1157476 Opened 9 years ago Closed 9 years ago

Remove synchronous dispatch in AndroidMediaResourceServer::Start

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: bholley, Assigned: bholley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This seems to run on the main thread anyway, and I think we can guarantee that we always initialize this thing on the main thread before using it off-main-thread. I'm hacking around it for now in bug 1144486, but we should fix it up properly.

Is there any reason not to do this at startup in MediaDecoder::InitStatics?
Flags: needinfo?(cajbir.bugzilla)
Depends on: 1144486
On IRC, cajbir and I decided we could do this in the MediaDecoder constructor.
Flags: needinfo?(cajbir.bugzilla)
Comment on attachment 8597583 [details] [diff] [review]
Remove synchronous dispatch in AndroidMediaResourceServer::Start. v1

Review of attachment 8597583 [details] [diff] [review]:
-----------------------------------------------------------------

r+ if you've tested that this works on physical hardware.
Attachment #8597583 - Flags: review?(cajbir.bugzilla) → review+
(In reply to cajbir (:cajbir) from comment #5)
> r+ if you've tested that this works on physical hardware.

I'm not in a position to do that easily. Can you suggest someone who's familiar with the feature who can do it?

This passes the robocop tests that exercise this codepath, FWIW.
Flags: needinfo?(cajbir.bugzilla)
And in particular, the failure mode here is going to be a very clear MOZ_CRASH (when the server is used without having been initialized), which is unlikely to go unnoticed.
(In reply to Bobby Holley (:bholley) from comment #6)
> 
> This passes the robocop tests that exercise this codepath, FWIW.


If the codepath is being tested via robocop that's fine.
Flags: needinfo?(cajbir.bugzilla)
https://hg.mozilla.org/mozilla-central/rev/3a1da9617e31
Assignee: nobody → bobbyholley
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: