From ab6cb4c2c79f1c3681556f8fc98fbc95039f0b29 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Tue, 31 Aug 2021 11:05:16 +0100 Subject: qt: Fix build for Qt 5.9 The QQuickItem::size() method was introduced in 5.10, so use direct width() and height() access instead. Fixes #908 Part-of: --- ext/qt/qtitem.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index e042b2f42..4ac349ea0 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -308,15 +308,15 @@ QtGLVideoItem::fitStreamToAllocatedSize(GstVideoRectangle * result) dst.x = 0; dst.y = 0; - dst.w = size().width(); - dst.h = size().height(); + dst.w = width(); + dst.h = height(); gst_video_sink_center_rect (src, dst, result, TRUE); } else { result->x = 0; result->y = 0; - result->w = size().width(); - result->h = size().height(); + result->w = width(); + result->h = height(); } } -- cgit v1.2.1