Title: [239800] branches/safari-607-branch/Source/WebCore
Revision
239800
Author
[email protected]
Date
2019-01-09 17:38:11 -0800 (Wed, 09 Jan 2019)

Log Message

Cherry-pick r239702. rdar://problem/47158664

    Cleanup AudioTrackPrivateMediaStreamCocoa
    https://bugs.webkit.org/show_bug.cgi?id=193208
    <rdar://problem/42225870>

    Reviewed by Youenn Fablet.

    * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
    (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable): Clear input and
    output format descriptions after stopping the audio unit.

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

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebCore/ChangeLog (239799 => 239800)


--- branches/safari-607-branch/Source/WebCore/ChangeLog	2019-01-10 01:38:08 UTC (rev 239799)
+++ branches/safari-607-branch/Source/WebCore/ChangeLog	2019-01-10 01:38:11 UTC (rev 239800)
@@ -1,5 +1,34 @@
 2019-01-09  Kocsen Chung  <[email protected]>
 
+        Cherry-pick r239702. rdar://problem/47158664
+
+    Cleanup AudioTrackPrivateMediaStreamCocoa
+    https://bugs.webkit.org/show_bug.cgi?id=193208
+    <rdar://problem/42225870>
+    
+    Reviewed by Youenn Fablet.
+    
+    * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
+    (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable): Clear input and
+    output format descriptions after stopping the audio unit.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-01-07  Eric Carlson  <[email protected]>
+
+            Cleanup AudioTrackPrivateMediaStreamCocoa
+            https://bugs.webkit.org/show_bug.cgi?id=193208
+            <rdar://problem/42225870>
+
+            Reviewed by Youenn Fablet.
+
+            * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
+            (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable): Clear input and
+            output format descriptions after stopping the audio unit.
+
+2019-01-09  Kocsen Chung  <[email protected]>
+
         Cherry-pick r239694. rdar://problem/47158722
 
     Deactivate audio session whenever possible

Modified: branches/safari-607-branch/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp (239799 => 239800)


--- branches/safari-607-branch/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp	2019-01-10 01:38:08 UTC (rev 239799)
+++ branches/safari-607-branch/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp	2019-01-10 01:38:11 UTC (rev 239800)
@@ -172,9 +172,6 @@
 
     if (!m_inputDescription || *m_inputDescription != description) {
 
-        m_inputDescription = nullptr;
-        m_outputDescription = nullptr;
-
         if (m_remoteIOUnit) {
             AudioOutputUnitStop(m_remoteIOUnit);
             AudioComponentInstanceDispose(m_remoteIOUnit);
@@ -181,6 +178,9 @@
             m_remoteIOUnit = nullptr;
         }
 
+        m_inputDescription = nullptr;
+        m_outputDescription = nullptr;
+
         CAAudioStreamDescription inputDescription = toCAAudioStreamDescription(description);
         CAAudioStreamDescription outputDescription;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to