Title: [279138] trunk/Source/WebCore
- Revision
- 279138
- Author
- jer.no...@apple.com
- Date
- 2021-06-22 13:07:26 -0700 (Tue, 22 Jun 2021)
Log Message
Unreviewed tvOS build fix after r279119: add PLATFORM(IOS) guards to exclude tvOS and Catalyst builds.
* platform/audio/ios/AudioSessionIOS.mm:
(WebCore::setEligibleForSmartRouting):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (279137 => 279138)
--- trunk/Source/WebCore/ChangeLog 2021-06-22 19:47:57 UTC (rev 279137)
+++ trunk/Source/WebCore/ChangeLog 2021-06-22 20:07:26 UTC (rev 279138)
@@ -1,3 +1,10 @@
+2021-06-22 Jer Noble <jer.no...@apple.com>
+
+ Unreviewed tvOS build fix after r279119: add PLATFORM(IOS) guards to exclude tvOS and Catalyst builds.
+
+ * platform/audio/ios/AudioSessionIOS.mm:
+ (WebCore::setEligibleForSmartRouting):
+
2021-06-22 Simon Fraser <simon.fra...@apple.com>
REGRESSION (Safari 14): Submenus on https://codelearn.cat don't show
Modified: trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm (279137 => 279138)
--- trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm 2021-06-22 19:47:57 UTC (rev 279137)
+++ trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm 2021-06-22 20:07:26 UTC (rev 279138)
@@ -98,6 +98,7 @@
static void setEligibleForSmartRouting(bool eligible)
{
+#if PLATFORM(IOS)
ASSERT(!isMainThread());
auto *session = [PAL::getAVAudioSessionClass() sharedInstance];
@@ -111,6 +112,9 @@
NSError *error = nil;
if (![session setEligibleForBTSmartRoutingConsideration:eligible error:&error])
RELEASE_LOG_ERROR(Media, "failed to set eligible to %d with error: %@", eligible, error.localizedDescription);
+#else
+ UNUSED_PARAM(eligible);
+#endif
}
AudioSessionIOS::AudioSessionIOS()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes