Skip to content

Commit bbbfe72

Browse files
committed
Quirks: Fix fake hole-punching
1 parent f32e2f5 commit bbbfe72

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer(MediaPlayer* player)
192192
#if USE(TEXTURE_MAPPER_GL) && USE(NICOSIA)
193193
m_nicosiaLayer = Nicosia::ContentLayer::create(Nicosia::ContentLayerTextureMapperImpl::createFactory(*this,
194194
[&]() -> Ref<TextureMapperPlatformLayerProxy> {
195+
if (isHolePunchRenderingEnabled())
196+
return adoptRef(*new TextureMapperPlatformLayerProxyGL(true));
197+
195198
#if USE(TEXTURE_MAPPER_DMABUF)
196199
if (webKitDMABufVideoSinkIsEnabled() && webKitDMABufVideoSinkProbePlatform())
197200
return adoptRef(*new TextureMapperPlatformLayerProxyDMABuf);

Source/WebCore/platform/gstreamer/GStreamerQuirks.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ GstElement* GStreamerQuirksManager::createHolePunchVideoSink(bool isLegacyPlaybi
175175

176176
void GStreamerQuirksManager::setHolePunchVideoRectangle(GstElement* videoSink, const IntRect& rect)
177177
{
178-
RELEASE_ASSERT_WITH_MESSAGE(isEnabled() && m_holePunchQuirk, "setHolePunchVideoRectangle() should be called only if one hole-punch quirk was requested");
179-
if (!isEnabled() || !m_holePunchQuirk) {
178+
if (!m_holePunchQuirk) {
180179
GST_DEBUG("None of the quirks requested a HolePunchSink");
181180
return;
182181
}

0 commit comments

Comments
 (0)