qmlglsink: fix another resize case
authorMatthew Waters <matthew@centricular.com>
Mon, 15 Nov 2021 03:39:14 +0000 (14:39 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 17 Nov 2021 03:08:14 +0000 (03:08 +0000)
commit55e04d129f10281a8b0a9675d72ff34eabbf8a62
tree496a7b4bf979467bd15d9c3fc65d08dae8b87745
parenta6fd76702549c525784b1a98a99f55ff3ab4ebca
qmlglsink: fix another resize case

If qt asks us to redraw before we have both set a buffer and caps we
would attempt to use the new caps with the old buffer which could result
in bad things happening.

Only update caps from new_caps once the buffer has actually been set.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1346>
subprojects/gst-plugins-good/ext/qt/qtitem.cc