Title: [151473] trunk/Source/WebCore
Revision
151473
Author
jer.no...@apple.com
Date
2013-06-11 14:43:41 -0700 (Tue, 11 Jun 2013)

Log Message

REGRESSION: (r149232) videos on disney.com are initially scrambled on load
https://bugs.webkit.org/show_bug.cgi?id=117517

Reviewed by Eric Carlson.

Set a background color on the AVPlayerLayer to avoid corruption when no
frames are available to display.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (151472 => 151473)


--- trunk/Source/WebCore/ChangeLog	2013-06-11 21:23:43 UTC (rev 151472)
+++ trunk/Source/WebCore/ChangeLog	2013-06-11 21:43:41 UTC (rev 151473)
@@ -1,3 +1,16 @@
+2013-06-11  Jer Noble  <jer.no...@apple.com>
+
+        REGRESSION: (r149232) videos on disney.com are initially scrambled on load
+        https://bugs.webkit.org/show_bug.cgi?id=117517
+
+        Reviewed by Eric Carlson.
+
+        Set a background color on the AVPlayerLayer to avoid corruption when no
+        frames are available to display.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer):
+
 2013-06-11  Ryosuke Niwa  <rn...@webkit.org>
 
         Use HTMLElementFactory to create equivalent elements in WebVTTElement

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (151472 => 151473)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-06-11 21:23:43 UTC (rev 151472)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-06-11 21:43:41 UTC (rev 151473)
@@ -365,6 +365,7 @@
     if (!m_videoLayer) {
         m_videoLayer = adoptNS([[AVPlayerLayer alloc] init]);
         [m_videoLayer.get() setPlayer:m_avPlayer.get()];
+        [m_videoLayer.get() setBackgroundColor:CGColorGetConstantColor(kCGColorBlack)];
 #ifndef NDEBUG
         [m_videoLayer.get() setName:@"Video layer"];
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to