[Webkit-unassigned] [Bug 198555] [WinCairo][MediaFoundation] MediaPlayerPrivateMediaFoundation::naturalSize is going to return larger and larger sizes gradually

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 4 21:56:06 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198555

--- Comment #1 from Fujii Hironori <Hironori.Fujii at sony.com> ---
I applied a following logging patch to MediaPlayerPrivateMediaFoundation::naturalSize.

> diff --git a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
> index 00b0d0884fc..790ec6b4a43 100644
> --- a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
> +++ b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
> @@ -45,6 +45,8 @@
>  #include <wtf/MainThread.h>
>  #include <wtf/NeverDestroyed.h>
>  
> +#include "Logging.h"
> +
>  SOFT_LINK_LIBRARY(Mf);
>  SOFT_LINK_OPTIONAL(Mf, MFCreateSourceResolver, HRESULT, STDAPICALLTYPE, (IMFSourceResolver**));
>  SOFT_LINK_OPTIONAL(Mf, MFCreateMediaSession, HRESULT, STDAPICALLTYPE, (IMFAttributes*, IMFMediaSession**));
> @@ -208,6 +210,7 @@ bool MediaPlayerPrivateMediaFoundation::supportsFullscreen() const
>  FloatSize MediaPlayerPrivateMediaFoundation::naturalSize() const
>  {
>      LockHolder locker(m_cachedNaturalSizeLock);
> +    LOG(Media, "MediaPlayerPrivateMediaFoundation::naturalSize %fx%f", m_cachedNaturalSize.width(), m_cachedNaturalSize.height());
>      return m_cachedNaturalSize;
>  }
>  

Here is the result:

> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 450.000000x225.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 675.000000x337.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 675.000000x337.000000
> The thread 0x3e04 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 1012.000000x505.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 1012.000000x505.000000
> The thread 0x3c04 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 1518.000000x757.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 1518.000000x757.000000
> The thread 0x2f54 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 2277.000000x1135.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 2277.000000x1135.000000
> The thread 0x1d88 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 3415.000000x1702.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 3415.000000x1702.000000
> The thread 0x33a4 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 5122.000000x2553.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 5122.000000x2553.000000
> The thread 0x3aa8 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 7683.000000x3829.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 7683.000000x3829.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 7683.000000x3829.000000
> The thread 0xa40 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x5743.000000
> The thread 0x478c has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x4366.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x4366.000000
> The thread 0x3678 has exited with code 0 (0x0).
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x4366.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x4366.000000
> MediaPlayerPrivateMediaFoundation::naturalSize 11524.000000x4366.000000
(...)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190605/71a64753/attachment.html>


More information about the webkit-unassigned mailing list