Title: [200354] trunk/Source/WebCore
Revision
200354
Author
[email protected]
Date
2016-05-02 18:39:50 -0700 (Mon, 02 May 2016)

Log Message

[Mac] AirPlay fails if target is set before AVPlayer has been created
https://bugs.webkit.org/show_bug.cgi?id=157147
<rdar://problem/24197592>

Reviewed by Dean Jackson.

No new tests, it won't be possible to test this until
https://bugs.webkit.org/show_bug.cgi?id=157290 has been fixed.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (200353 => 200354)


--- trunk/Source/WebCore/ChangeLog	2016-05-03 01:34:32 UTC (rev 200353)
+++ trunk/Source/WebCore/ChangeLog	2016-05-03 01:39:50 UTC (rev 200354)
@@ -1,3 +1,17 @@
+2016-05-02  Eric Carlson  <[email protected]>
+
+        [Mac] AirPlay fails if target is set before AVPlayer has been created
+        https://bugs.webkit.org/show_bug.cgi?id=157147
+        <rdar://problem/24197592>
+
+        Reviewed by Dean Jackson.
+
+        No new tests, it won't be possible to test this until 
+        https://bugs.webkit.org/show_bug.cgi?id=157290 has been fixed.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer):
+
 2016-05-02  Brady Eidson  <[email protected]>
 
         Const-ify some IDB code.

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


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2016-05-03 01:34:32 UTC (rev 200353)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2016-05-03 01:39:50 UTC (rev 200354)
@@ -1036,8 +1036,11 @@
 #endif
 
 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
-    if (m_shouldPlayToPlaybackTarget)
+    if (m_shouldPlayToPlaybackTarget) {
+        // Clear m_shouldPlayToPlaybackTarget so doesn't return without doing anything.
+        m_shouldPlayToPlaybackTarget = false;
         setShouldPlayToPlaybackTarget(true);
+    }
 #endif
 
     if (player()->client().mediaPlayerIsVideo())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to