Relax AudioDriftCorrection's thread limitation
Categories
(Core :: Audio/Video: MediaStreamGraph, enhancement, P1)
Tracking
()
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.
Assignee | ||
Comment 1•2 years ago
|
||
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
Comment 3•2 years ago
|
||
bugherder |
Description
•