mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
qmlglsink: Set qtitem's implicit width/height
This can be useful to let the layouts automatically resize qtitem and also easily query a video's width/height from QML Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/802>
This commit is contained in:
parent
917bf649cc
commit
aa264e6b07
1 changed files with 3 additions and 0 deletions
|
@ -421,6 +421,9 @@ _calculate_par (QtGLVideoItem * widget, GstVideoInfo * info)
|
|||
if (!ok)
|
||||
return FALSE;
|
||||
|
||||
widget->setImplicitWidth (width);
|
||||
widget->setImplicitHeight (height);
|
||||
|
||||
GST_LOG ("%p PAR: %u/%u DAR:%u/%u", widget, par_n, par_d, display_par_n,
|
||||
display_par_d);
|
||||
|
||||
|
|
Loading…
Reference in a new issue