Register a MediaStreamTrack as media producer only if it is a capture track
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jul 2019 04:24:59 +0000 (04:24 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jul 2019 04:24:59 +0000 (04:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199566
<rdar://problem/52761361>

Addressing post-landing comment to simplify setMuted call.
Unreviewed.

* Modules/mediastream/MediaStreamTrack.cpp:
(WebCore::MediaStreamTrack::MediaStreamTrack):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247382 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp

index 2c404a2..29f214e 100644 (file)
@@ -1,5 +1,17 @@
 2019-07-11  Youenn Fablet  <youenn@apple.com>
 
+        Register a MediaStreamTrack as media producer only if it is a capture track
+        https://bugs.webkit.org/show_bug.cgi?id=199566
+        <rdar://problem/52761361>
+
+        Addressing post-landing comment to simplify setMuted call.
+        Unreviewed.
+
+        * Modules/mediastream/MediaStreamTrack.cpp:
+        (WebCore::MediaStreamTrack::MediaStreamTrack):
+
+2019-07-11  Youenn Fablet  <youenn@apple.com>
+
         Protect CoreAudioSharedUnit::m_clients for accessing in different threads simultaneously
         https://bugs.webkit.org/show_bug.cgi?id=199717
 
index 4b33095..904b6c3 100644 (file)
@@ -71,7 +71,7 @@ MediaStreamTrack::MediaStreamTrack(ScriptExecutionContext& context, Ref<MediaStr
 
     if (auto document = this->document()) {
         if (document->page() && document->page()->mutedState())
-            setMuted(document->page()->mutedState());
+            setMuted(true);
         document->addAudioProducer(*this);
     }
 }