Title: [177570] tags/Safari-600.1.4.13.2/Source/WebCore
Revision
177570
Author
[email protected]
Date
2014-12-19 00:29:37 -0800 (Fri, 19 Dec 2014)

Log Message

Merged r177566.  rdar://problem/19299453

Modified Paths

Diff

Modified: tags/Safari-600.1.4.13.2/Source/WebCore/ChangeLog (177569 => 177570)


--- tags/Safari-600.1.4.13.2/Source/WebCore/ChangeLog	2014-12-19 08:24:14 UTC (rev 177569)
+++ tags/Safari-600.1.4.13.2/Source/WebCore/ChangeLog	2014-12-19 08:29:37 UTC (rev 177570)
@@ -1,3 +1,19 @@
+2014-12-18  Babak Shafiei  <[email protected]>
+
+        Merge r177566.
+
+    2014-12-18  Jeremy Jones  <[email protected]>
+
+            dispatch to main thread before accessing playerController() in WebVideoFullscreenInterfaceAVKit::setCanPlayFastReverse
+            https://bugs.webkit.org/show_bug.cgi?id=139809
+
+            Reviewed by Dan Bernstein.
+
+            This prevents a race in playerController().
+
+            * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+            (WebVideoFullscreenInterfaceAVKit::setCanPlayFastReverse):
+
 2014-12-17  Babak Shafiei  <[email protected]>
 
         Merge build fix for r177375.

Modified: tags/Safari-600.1.4.13.2/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm (177569 => 177570)


--- tags/Safari-600.1.4.13.2/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm	2014-12-19 08:24:14 UTC (rev 177569)
+++ tags/Safari-600.1.4.13.2/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm	2014-12-19 08:29:37 UTC (rev 177570)
@@ -662,7 +662,11 @@
 
 void WebVideoFullscreenInterfaceAVKit::setCanPlayFastReverse(bool canPlayFastReverse)
 {
-    playerController().canScanBackward = canPlayFastReverse;
+    RefPtr<WebVideoFullscreenInterfaceAVKit> strongThis(this);
+    
+    dispatch_async(dispatch_get_main_queue(), [strongThis, canPlayFastReverse] {
+        strongThis->playerController().canScanBackward = canPlayFastReverse;
+    });
 }
 
 static RetainPtr<NSMutableArray> mediaSelectionOptions(const Vector<String>& options)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to