[Win] Fix compile errors in MediaPlayerPrivateAVFoundationCF.cpp
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Nov 2017 03:00:08 +0000 (03:00 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Nov 2017 03:00:08 +0000 (03:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=179148

Reviewed by Ryosuke Niwa.

* platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
(WebCore::MediaPlayerPrivateAVFoundationCF::resolvedURLChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224311 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp

index 8e2874a..eefdb86 100644 (file)
@@ -1,3 +1,13 @@
+2017-11-01  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] Fix compile errors in MediaPlayerPrivateAVFoundationCF.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=179148
+
+        Reviewed by Ryosuke Niwa.
+
+        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
+        (WebCore::MediaPlayerPrivateAVFoundationCF::resolvedURLChanged):
+
 2017-11-01  Tim Horton  <timothy_horton@apple.com>
 
         Adjust RenderElement size assertion to be more accurate
index 40931c2..f16bfbd 100644 (file)
@@ -115,7 +115,7 @@ public:
     void destroyImageGenerator();
     RetainPtr<CGImageRef> createImageForTimeInRect(const MediaTime&, const FloatRect&);
 
-    void createAssetForURL(const String& url, bool inheritURI);
+    void createAssetForURL(const URL&, bool inheritURI);
     void setAsset(AVCFURLAssetRef);
     
     void createPlayer(IDirect3DDevice9*);
@@ -1113,7 +1113,7 @@ void MediaPlayerPrivateAVFoundationCF::sizeChanged()
 void MediaPlayerPrivateAVFoundationCF::resolvedURLChanged()
 {
     if (m_avfWrapper && m_avfWrapper->avAsset())
-        setResolvedURL(adoptCF(AVCFAssetCopyResolvedURL(m_avfWrapper->avAsset())));
+        setResolvedURL(URL(adoptCF(AVCFAssetCopyResolvedURL(m_avfWrapper->avAsset())).get()));
     else
         setResolvedURL({ });
 }