Closed Bug 1464420 Opened 7 years ago Closed 5 years ago

State change callback takes place after the destructor of AudioCallbackDriver

Categories

(Core :: Audio/Video: cubeb, enhancement, P3)

All
Linux
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: achronop, Assigned: kinetik)

References

Details

With cubeb remote, the AudioCallbackDriver::StateCallback (for stop state) takes place after the destructor of AudioCallback. In order to see the error run it under debugger or add logs in the corresponding methods. In gUM test page make a short audio call. It's more obvious when the last driver is collected, so wait ~30 secs. Check that destructor is executed before the state change callback. Cubeb stream stop happens in `Shutdown` method here [1] and destruction of the driver a few lines bellow [2]. Since `Shutdown` is a sync method I would expect to see the callback before the return of `Shutdown` method. [1] https://searchfox.org/mozilla-central/source/dom/media/MediaStreamGraph.cpp#1466 [2] https://searchfox.org/mozilla-central/source/dom/media/MediaStreamGraph.cpp#1478
Rank: 20
Priority: -- → P3
Assignee: nobody → kinetik

Fixed by bug 1690718.

Depends on: 1690718
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.