File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Source/WebCore/platform/graphics/gstreamer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1656,13 +1656,16 @@ FloatSize MediaPlayerPrivateGStreamer::naturalSize() const
16561656 if (!hasVideo ())
16571657 return FloatSize ();
16581658
1659- if (!m_videoSize.isEmpty () && ! isHolePunchRenderingEnabled () )
1659+ if (!m_videoSize.isEmpty ())
16601660 return m_videoSize;
16611661
16621662 // When using the holepunch we may not be able to get the video frames size, so we can't use
16631663 // it. But we need to report some non empty naturalSize for the player's GraphicsLayer
16641664 // to be properly created.
1665- return s_holePunchDefaultFrameSize;
1665+ if (isHolePunchRenderingEnabled ())
1666+ return s_holePunchDefaultFrameSize;
1667+
1668+ return m_videoSize;
16661669}
16671670
16681671void MediaPlayerPrivateGStreamer::configureMediaStreamAudioTracks ()
You can’t perform that action at this time.
0 commit comments