Skip to content

Commit 611b449

Browse files
committed
Quirks: Fix hole-punch rendering
1 parent 5f51842 commit 611b449

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

16681671
void MediaPlayerPrivateGStreamer::configureMediaStreamAudioTracks()

0 commit comments

Comments
 (0)