qroverlay: redraw overlay when caps changes

The position needs to be updated as it depends of the video size.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7230>
This commit is contained in:
Guillaume Desmottes 2024-07-24 22:22:03 +02:00 committed by GStreamer Marge Bot
parent 6e7300d2a8
commit a82151b84f

View file

@ -131,6 +131,9 @@ gst_base_qr_overlay_caps_changed_cb (GstBaseQROverlay * self, GstCaps * caps,
priv->valid = TRUE;
else
priv->valid = FALSE;
/* needs to redraw the overlay as its position depends of the video size */
gst_mini_object_replace (((GstMiniObject **) & priv->prev_overlay), NULL);
}
static GstVideoOverlayComposition *