Skip to content

Commit cadc7eb

Browse files
committed
Quirks: set video rectangle even if no platform quirk is requested
1 parent 1573c3c commit cadc7eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4015,14 +4015,14 @@ GstElement* MediaPlayerPrivateGStreamer::createVideoSinkGL()
40154015
static void setRectangleToVideoSink(GstElement* videoSink, const IntRect& rect)
40164016
{
40174017
// Here goes the platform-dependant code to set to the videoSink the size
4018-
// and position of the video rendering window. Mark them unused as default.
4018+
// and position of the video rendering window.
40194019

40204020
if (!videoSink)
40214021
return;
40224022

4023+
ASSERT(isHolePunchRenderingEnabled());
40234024
auto& quirksManager = GStreamerQuirksManager::singleton();
4024-
if (quirksManager.isEnabled())
4025-
quirksManager.setHolePunchVideoRectangle(videoSink, rect);
4025+
quirksManager.setHolePunchVideoRectangle(videoSink, rect);
40264026
}
40274027

40284028
class GStreamerHolePunchClient : public TextureMapperPlatformLayerBuffer::HolePunchClient {

0 commit comments

Comments
 (0)