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>
This commit is contained in:
Philippe Normand 2021-08-31 11:05:16 +01:00 committed by GStreamer Marge Bot
parent aa3d2c3369
commit ab6cb4c2c7

View file

@ -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();
}
}