Closed Bug 1134102 Opened 9 years ago Closed 9 years ago

Move cubeb's stream reconfiguration to render thread

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: kinetik, Assigned: kinetik)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch bugX.patch (obsolete) — Splinter Review
Introduce a new event, have the notification client hold only the event handle, and make the render loop thread reconfigure the stream when the event is signaled.

I haven't tested this at all yet, but it seems safer than doing a bunch of work on a thread we don't control (where the OnDefaultDeviceChanged callback runs).  I haven't seen any documentation that says the existing design is dangerous, but reducing the number of threads involved in this process should make reasoning about the behaviour somewhat easier.

Applies on top of the changes in bug 1134078.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=d0ddb81d4ef7
Attachment #8565812 - Flags: feedback?(padenot)
Attachment #8565812 - Attachment is obsolete: true
Attachment #8565812 - Flags: feedback?(padenot)
Attachment #8565909 - Flags: review?(padenot)
Comment on attachment 8565909 [details] [diff] [review]
bug1134102_v1.patch

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

I think this is better than my design, you're right.
Attachment #8565909 - Flags: review?(padenot) → review+
https://hg.mozilla.org/mozilla-central/rev/d3d919e4fdf4
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: