Title: [215452] trunk/Source/WebCore
Revision
215452
Author
[email protected]
Date
2017-04-17 23:05:25 -0700 (Mon, 17 Apr 2017)

Log Message

Unreviewed build fix for !ENABLE(MEDIA_STREAM) configurations.

* html/MediaElementSession.cpp:
(WebCore::MediaElementSession::playbackPermitted): Guard the use of
HTMLMediaElement::hasMediaStreamSrcObject() with ENABLE(MEDIA_STREAM).

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (215451 => 215452)


--- trunk/Source/WebCore/ChangeLog	2017-04-18 05:55:41 UTC (rev 215451)
+++ trunk/Source/WebCore/ChangeLog	2017-04-18 06:05:25 UTC (rev 215452)
@@ -1,3 +1,11 @@
+2017-04-17  Zan Dobersek  <[email protected]>
+
+        Unreviewed build fix for !ENABLE(MEDIA_STREAM) configurations.
+
+        * html/MediaElementSession.cpp:
+        (WebCore::MediaElementSession::playbackPermitted): Guard the use of
+        HTMLMediaElement::hasMediaStreamSrcObject() with ENABLE(MEDIA_STREAM).
+
 2017-04-17  Alex Christensen  <[email protected]>
 
         Allow Variants of RetainPtrs

Modified: trunk/Source/WebCore/html/MediaElementSession.cpp (215451 => 215452)


--- trunk/Source/WebCore/html/MediaElementSession.cpp	2017-04-18 05:55:41 UTC (rev 215451)
+++ trunk/Source/WebCore/html/MediaElementSession.cpp	2017-04-18 06:05:25 UTC (rev 215452)
@@ -164,8 +164,10 @@
     if (m_restrictions & OverrideUserGestureRequirementForMainContent && updateIsMainContent())
         return { };
 
+#if ENABLE(MEDIA_STREAM)
     if (element.document().isCapturing() && element.hasMediaStreamSrcObject())
         return { };
+#endif
 
     if (m_restrictions & RequireUserGestureForVideoRateChange && element.isVideo() && !ScriptController::processingUserGestureForMedia()) {
         LOG(Media, "MediaElementSession::playbackPermitted - returning FALSE because of video rate change restriction");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to