Build fix after r188716.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Aug 2015 02:51:33 +0000 (02:51 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Aug 2015 02:51:33 +0000 (02:51 +0000)
* platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
(WebCore::MediaPlayerPrivateMediaFoundation::endGetEvent):
Add some scope so we can declare a variable (weakPtr) inside a switch statement.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp

index bbaf86a..0ba2a54 100644 (file)
@@ -3,6 +3,14 @@
         Build fix after r188716.
 
         * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
+        (WebCore::MediaPlayerPrivateMediaFoundation::endGetEvent):
+        Add some scope so we can declare a variable (weakPtr) inside a switch statement.
+
+2015-08-20  Alex Christensen  <achristensen@webkit.org>
+
+        Build fix after r188716.
+
+        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
         (WebCore::MediaPlayerPrivateMediaFoundation::endCreatedMediaSource):
         (WebCore::MediaPlayerPrivateMediaFoundation::endGetEvent):
         Replace m_weakFactory with m_weakPtrFactory which actually exists.
index 147ef08..b2c578c 100644 (file)
@@ -364,7 +364,7 @@ bool MediaPlayerPrivateMediaFoundation::endGetEvent(IMFAsyncResult* asyncResult)
         return false;
 
     switch (mediaEventType) {
-    case MESessionTopologySet:
+    case MESessionTopologySet: {
         auto weakPtr = m_weakPtrFactory.createWeakPtr();
         callOnMainThread([weakPtr] {
             if (!weakPtr)
@@ -372,6 +372,7 @@ bool MediaPlayerPrivateMediaFoundation::endGetEvent(IMFAsyncResult* asyncResult)
             weakPtr->onTopologySet();
         });
         break;
+    }
 
     case MESessionClosed:
         break;