Title: [232453] trunk/Source/WebCore
- Revision
- 232453
- Author
- [email protected]
- Date
- 2018-06-03 13:22:05 -0700 (Sun, 03 Jun 2018)
Log Message
[iOS] MediaPlayer.framework is not always available
https://bugs.webkit.org/show_bug.cgi?id=186220
<rdar://problem/40571286>
Reviewed by Tim Horton.
* platform/ios/RemoteCommandListenerIOS.mm:
(WebCore::RemoteCommandListener::create):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (232452 => 232453)
--- trunk/Source/WebCore/ChangeLog 2018-06-03 19:46:17 UTC (rev 232452)
+++ trunk/Source/WebCore/ChangeLog 2018-06-03 20:22:05 UTC (rev 232453)
@@ -1,3 +1,14 @@
+2018-06-03 Eric Carlson <[email protected]>
+
+ [iOS] MediaPlayer.framework is not always available
+ https://bugs.webkit.org/show_bug.cgi?id=186220
+ <rdar://problem/40571286>
+
+ Reviewed by Tim Horton.
+
+ * platform/ios/RemoteCommandListenerIOS.mm:
+ (WebCore::RemoteCommandListener::create):
+
2018-06-02 Darin Adler <[email protected]>
[Cocoa] Update some code to be more ARC-compatible to prepare for future ARC adoption
Modified: trunk/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm (232452 => 232453)
--- trunk/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm 2018-06-03 19:46:17 UTC (rev 232452)
+++ trunk/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm 2018-06-03 20:22:05 UTC (rev 232453)
@@ -33,7 +33,7 @@
#import <MediaPlayer/MPRemoteCommandEvent.h>
#import <wtf/SoftLinking.h>
-SOFT_LINK_FRAMEWORK(MediaPlayer)
+SOFT_LINK_FRAMEWORK_OPTIONAL(MediaPlayer)
SOFT_LINK_CLASS(MediaPlayer, MPRemoteCommandCenter)
SOFT_LINK_CLASS(MediaPlayer, MPSeekCommandEvent)
SOFT_LINK_CLASS(MediaPlayer, MPChangePlaybackPositionCommandEvent)
@@ -42,6 +42,9 @@
std::unique_ptr<RemoteCommandListener> RemoteCommandListener::create(RemoteCommandListenerClient& client)
{
+ if (!MediaPlayerLibrary())
+ return nullptr;
+
return std::make_unique<RemoteCommandListenerIOS>(client);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes