mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
aa3d2c3369
commit
ab6cb4c2c7
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue