REGRESSION (r215242-215243): [ios-simulator] API test WebKit1.AudioSessionCategoryIOS...
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2017 00:40:38 +0000 (00:40 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2017 00:40:38 +0000 (00:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=170777
<rdar://problem/31592877>

Reviewed by Jer Noble.

No new tests, fixes an existing test.

* platform/audio/cocoa/MediaSessionManagerCocoa.cpp:
(PlatformMediaSessionManager::updateSessionState): Pass parameters to lambda by reference.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.cpp

index 6cb34c1e4fee5914eb17bc45d2dd2ec6694d1d9d..4a7de121242a1eb0a968b4e9c2435585367c254c 100644 (file)
@@ -1,3 +1,16 @@
+2017-04-12  Eric Carlson  <eric.carlson@apple.com>
+
+        REGRESSION (r215242-215243): [ios-simulator] API test WebKit1.AudioSessionCategoryIOS is failing
+        https://bugs.webkit.org/show_bug.cgi?id=170777
+        <rdar://problem/31592877>
+
+        Reviewed by Jer Noble.
+
+        No new tests, fixes an existing test.
+
+        * platform/audio/cocoa/MediaSessionManagerCocoa.cpp:
+        (PlatformMediaSessionManager::updateSessionState): Pass parameters to lambda by reference.
+
 2017-04-12  Eric Carlson  <eric.carlson@apple.com>
 
         [MediaStream] Set correct audio session category when capturing audio
index 65ae9b182b3ca7cbde58109018380824cb6b4f44..ae6d4d6b9f873df6488134153aa6f6816d5f3b90 100644 (file)
@@ -63,7 +63,7 @@ void PlatformMediaSessionManager::updateSessionState()
 
     bool hasAudioMediaType = false;
     bool hasAudibleAudioOrVideoMediaType = false;
-    bool hasAudioCapture = anyOfSessions([this, hasAudioMediaType, hasAudibleAudioOrVideoMediaType] (PlatformMediaSession& session, size_t) mutable {
+    bool hasAudioCapture = anyOfSessions([this, &hasAudioMediaType, &hasAudibleAudioOrVideoMediaType] (PlatformMediaSession& session, size_t) mutable {
         auto type = session.mediaType();
         if (type == PlatformMediaSession::VideoAudio || type == PlatformMediaSession::Audio || type == PlatformMediaSession::WebAudio)
             hasAudioMediaType = true;