Bug 1596433 - Mark MediaStreamTrackAudioSourceNode active when set up with a live input track. r=padenot
authorAndreas Pehrson <apehrson@mozilla.com>
Fri, 15 Nov 2019 15:25:05 +0000
changeset 502404 ce1b32236689a46bed461fe3ca79df58414394bc
parent 502403 9e0759e69df2c9b51bb7e2f26960f1f44d0a4274
child 502405 a0e0c81e36237ce624a44897278ea842bb04ed0a
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1596433
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1596433 - Mark MediaStreamTrackAudioSourceNode active when set up with a live input track. r=padenot Differential Revision: https://phabricator.services.mozilla.com/D53025
dom/media/webaudio/MediaStreamTrackAudioSourceNode.cpp
--- a/dom/media/webaudio/MediaStreamTrackAudioSourceNode.cpp
+++ b/dom/media/webaudio/MediaStreamTrackAudioSourceNode.cpp
@@ -82,16 +82,18 @@ void MediaStreamTrackAudioSourceNode::In
   }
 
   if (aMediaStreamTrack->Ended()) {
     // The track is ended and will never produce any data. Pretend like this is
     // fine.
     return;
   }
 
+  MarkActive();
+
   MediaTrackGraph* graph = Context()->Graph();
 
   AudioNodeEngine* engine = new MediaStreamTrackAudioSourceNodeEngine(this);
   mTrack = AudioNodeExternalInputTrack::Create(graph, engine);
 
   MOZ_ASSERT(mTrack);
 
   mInputTrack = aMediaStreamTrack;