зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1625372 remove unnecessary DestroyNonRealtimeInstance() call from AudioDestinationNode::DestroyMediaTrack() r=padenot
DestroyMediaTrack() is called only on Unlink or destruction of the AudioDestinationNode. If there are no references to the AudioDestinationNode, then the graph's last stream will be destroyed and the graph will shut down itself. Differential Revision: https://phabricator.services.mozilla.com/D74812
This commit is contained in:
Родитель
53bf89e445
Коммит
3e139c32e0
|
@ -414,10 +414,6 @@ void AudioDestinationNode::DestroyMediaTrack() {
|
|||
Context()->ShutdownWorklet();
|
||||
|
||||
mTrack->RemoveMainThreadListener(this);
|
||||
MediaTrackGraph* graph = mTrack->Graph();
|
||||
if (graph->IsNonRealtime()) {
|
||||
MediaTrackGraph::DestroyNonRealtimeInstance(graph);
|
||||
}
|
||||
AudioNode::DestroyMediaTrack();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче