summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2021-08-31 11:05:16 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-31 11:15:24 +0000
commitab6cb4c2c79f1c3681556f8fc98fbc95039f0b29 (patch)
treef7becd46d6d55680162d206ef8834d4abd13a21e
parentaa3d2c3369781cc20cf216e7c093fba911b238e5 (diff)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1069>
-rw-r--r--ext/qt/qtitem.cc8
1 files 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();
}
}