Closed Bug 1746893 Opened 2 years ago Closed 2 years ago

Relax AudioDriftCorrection's thread limitation

Categories

(Core :: Audio/Video: MediaStreamGraph, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(1 file)

By the comment in AudioDriftCorrection: "The construction can happen in any thread", the AudioDriftCorrection class is ought to be created in any thread, but it's not true actually. The fact that ctor calls Preferences::GetInt makes it can only be called on main-thread, which
is the thread Preferences::GetInt should be.

To make AudioDriftCorrection work as what it's expected, the preference getter should be moved to the AudioDriftCorrection's caller rather than AudioDriftCorrection's ctor.

By the comment in AudioDriftCorrection: "The construction can happen
in any thread", the AudioDriftCorrection class is ought to be created
in any thread, but it's not true actually. The fact that ctor calls
Preferences::GetInt makes it can only be called on main-thread, which
is the thread Preferences::GetInt should be.

To make AudioDriftCorrection work as what it's expected, the
preference getter should be moved to the AudioDriftCorrection's caller
rather than AudioDriftCorrection's ctor.

Pushed by cchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0714fcb047ac
Relax AudioDriftCorrection's thread limitation r=padenot,pehrsons
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: