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:
Karl Tomlinson 2020-05-12 08:42:38 +00:00
Родитель 53bf89e445
Коммит 3e139c32e0
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -414,10 +414,6 @@ void AudioDestinationNode::DestroyMediaTrack() {
Context()->ShutdownWorklet();
mTrack->RemoveMainThreadListener(this);
MediaTrackGraph* graph = mTrack->Graph();
if (graph->IsNonRealtime()) {
MediaTrackGraph::DestroyNonRealtimeInstance(graph);
}
AudioNode::DestroyMediaTrack();
}